Commit abf736bb authored by zw's avatar zw

优化下

parent 8fdeea78
...@@ -545,7 +545,7 @@ class AppChat extends Basic ...@@ -545,7 +545,7 @@ class AppChat extends Basic
$param["type"] = 2; $param["type"] = 2;
//TODO 获取未读个数 //TODO 获取未读个数
$data["user_count"] = $msgModel->getListCountByWhere($param); $data["user_count"] = $msgModel->getListCountByWhere($param);
$param["type"] = 1; $param["type"] = array("in", "1,3");
$data["shop_count"] = $msgModel->getListCountByWhere($param); $data["shop_count"] = $msgModel->getListCountByWhere($param);
return $this->response("200", "success", $data); return $this->response("200", "success", $data);
} }
...@@ -573,7 +573,7 @@ class AppChat extends Basic ...@@ -573,7 +573,7 @@ class AppChat extends Basic
if ($user_count > 0) { if ($user_count > 0) {
return $this->response("200", "success", ["is_show_red" => true]); return $this->response("200", "success", ["is_show_red" => true]);
} }
$param["type"] = 1; $param["type"] = array("in", "1,3");
$shop_count = $msgModel->getListCountByWhere($param); $shop_count = $msgModel->getListCountByWhere($param);
if ($shop_count > 0) { if ($shop_count > 0) {
return $this->response("200", "success", ["is_show_red" => true]); return $this->response("200", "success", ["is_show_red" => true]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment