Просмотр исходного кода

获取未读消息总数的单位变更为 message

shizhongqi 11 месяцев назад
Родитель
Сommit
a24eff80ea
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app-hd/controllers/ChatController.php
  2. 1 1
      app-mall/controllers/ChatController.php

+ 1 - 1
app-hd/controllers/ChatController.php

@@ -166,7 +166,7 @@ class ChatController extends BaseController
     //门店的未读消息总数
     public function actionUnReadMsgCount()
     {
-        $c = ChatService::getUnReadMsgCount($this->shopId);
+        $c = ChatService::getUnReadMsgCount($this->shopId, 'message');
         util::success(['msg_count'=>$c]);
     }
 }

+ 1 - 1
app-mall/controllers/ChatController.php

@@ -132,7 +132,7 @@ class ChatController extends BaseController
     //客户的未读消息总数
     public function actionUnReadMsgCount()
     {
-        $c = ChatService::getUnReadMsgCount(intval($this->userId));
+        $c = ChatService::getUnReadMsgCount(intval($this->userId), 'message');
         util::success(['msg_count'=>$c]);
     }
 }