Explorar el Código

限定查询字段

shizhongqi hace 11 meses
padre
commit
7f3b2b3d7b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      biz-hd/message/services/ChatService.php

+ 1 - 1
biz-hd/message/services/ChatService.php

@@ -188,7 +188,7 @@ class ChatService extends BaseService
             $userData[$customId] = ['time' => $date, 'unReadNum' => $unReadNum];
         }
         $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) {
             $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;