Ver código fonte

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

shizhongqi 11 meses atrás
pai
commit
a24eff80ea

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

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

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

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