|
@@ -71,7 +71,15 @@ class KFMessageController extends CatchController
|
|
$item->message_content_arr = \json_decode($item->message_content, true);
|
|
$item->message_content_arr = \json_decode($item->message_content, true);
|
|
$item->message_type_str = 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 ?? '';
|
|
$item->ug_str = $ugs->get($item->ug_id)->name ?? '';
|
|
- $item->gzh_ids_arr = explode('#', trim($item->gzh_ids, '#'));
|
|
|
|
|
|
+ $gzh_ids = trim($item->gzh_ids, '#');
|
|
|
|
+ if($gzh_ids) {
|
|
|
|
+ $item->gzh_ids_arr = collect(explode('#', $gzh_ids))->map(function ($item){
|
|
|
|
+ return intval($item);
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ $item->gzh_ids_arr = [];
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return $result;
|
|
return $result;
|