|
|
@@ -8,6 +8,7 @@ use bizMall\message\classes\ChatClass;
|
|
|
use bizMall\shop\classes\ShopClass;
|
|
|
use bizMall\user\services\UserService;
|
|
|
use common\components\arrayUtil;
|
|
|
+use common\components\imgUtil;
|
|
|
use Yii;
|
|
|
use yii\helpers\ArrayHelper;
|
|
|
|
|
|
@@ -230,6 +231,8 @@ class ChatService extends BaseService
|
|
|
$shopList[$shopId]['unReadNum'] = isset($userData[$info['id']]['unReadNum']) ? $userData[$info['id']]['unReadNum'] : 0;
|
|
|
$shopList[$shopId]['chatTime'] = isset($userData[$info['id']]['time']) ? $userData[$info['id']]['time'] : 0;
|
|
|
$shopList[$shopId]['customId'] = isset($hdListByShopId[$info['id']]['customId']) ? $hdListByShopId[$info['id']]['customId'] : 0;
|
|
|
+
|
|
|
+ $shopList[$shopId]['avatar'] = imgUtil::groupImg($info['avatar']) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
|
|
|
}
|
|
|
$shopList = arrayUtil::arraySort($shopList, 'chatTime', SORT_DESC);
|
|
|
return array_values($shopList);
|