|
@@ -188,7 +188,7 @@ class ChatService extends BaseService
|
|
|
$userData[$customId] = ['time' => $date, 'unReadNum' => $unReadNum];
|
|
$userData[$customId] = ['time' => $date, 'unReadNum' => $unReadNum];
|
|
|
}
|
|
}
|
|
|
$ids = array_column($arr, 'cId');
|
|
$ids = array_column($arr, 'cId');
|
|
|
- $infoList = CustomClass::getByIds($ids);
|
|
|
|
|
|
|
+ $infoList = CustomClass::getByIds($ids, null, null, 'id,name,mobile,avatar,shopId');
|
|
|
foreach ($infoList as $customId => $info) {
|
|
foreach ($infoList as $customId => $info) {
|
|
|
$infoList[$customId]['unReadNum'] = isset($userData[$info['id']]['unReadNum']) ? $userData[$info['id']]['unReadNum'] : 0;
|
|
$infoList[$customId]['unReadNum'] = isset($userData[$info['id']]['unReadNum']) ? $userData[$info['id']]['unReadNum'] : 0;
|
|
|
$infoList[$customId]['chatTime'] = isset($userData[$info['id']]['time']) ? $userData[$info['id']]['time'] : 0;
|
|
$infoList[$customId]['chatTime'] = isset($userData[$info['id']]['time']) ? $userData[$info['id']]['time'] : 0;
|