瀏覽代碼

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

shizhongqi 11 月之前
父節點
當前提交
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]);
     }
 }