|
@@ -37,9 +37,9 @@ class KFMessageController extends CatchController
|
|
|
})->when($status, function ($query, $status){
|
|
|
return $query->where('status', $status);
|
|
|
})->when($sendAtStart, function ($query, $sendAtStart){
|
|
|
- return $query->where('start_at', '>=', $sendAtStart);
|
|
|
+ return $query->where('send_at', '>=', $sendAtStart);
|
|
|
})->when($sendAtEnd, function ($query, $sendAtEnd){
|
|
|
- return $query->where('start_at', '<=', $sendAtEnd . ' 23:59:59');
|
|
|
+ return $query->where('send_at', '<=', $sendAtEnd . ' 23:59:59');
|
|
|
})->when($gzhid, function ($query, $gzhid){
|
|
|
return $query->where('gzh_ids', 'like', '%#'. $gzhid . '#%');
|
|
|
})->orderBy('id', 'desc')
|
|
@@ -66,7 +66,7 @@ class KFMessageController extends CatchController
|
|
|
$item->gzh_names = $this->strGzhId($item->gzh_ids, $gzhs);
|
|
|
$item->status_str = WechatPlatformConstService::KF_MESSAGE_STATUS_MAPPER[$item->status] ?? '';
|
|
|
$item->message_content_arr = \json_decode($item->message_content, true);
|
|
|
- $item->message_type = WechatPlatformConstService::KF_MESSAGE_TYPE_MAPPER[$item->message_type] ?? '';
|
|
|
+ $item->message_type_str = WechatPlatformConstService::KF_MESSAGE_TYPE_MAPPER[$item->message_type] ?? '';
|
|
|
$item->ug_str = $ugs->get($item->ug_id)->name ?? '';
|
|
|
}
|
|
|
|