Commit 0d960d36 authored by hujun's avatar hujun

红点

parent a4c2821a
...@@ -742,12 +742,18 @@ class AppChat extends Basic ...@@ -742,12 +742,18 @@ class AppChat extends Basic
$param["is_read"] = 0; $param["is_read"] = 0;
//TODO 获取未读个数 //TODO 获取未读个数
$msgModel = new MPushMessage(); $msgModel = new MPushMessage();
$param["type"] = array("in", "1,2,3,8,10,11"); $param["type"] = array("in", "1,2,3,8,10,11,17,18");
$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]);
} else {
$msgCheckModel = new MPushCheckMessage();
$param["type"] = array("in", "8");
$check_count = $msgCheckModel->getTotal($params);
if ($check_count > 0) {
return $this->response("200", "success", ["is_show_red" => true]);
}
} }
$where["to_id"] = "agent_" . $params["agent_id"]; $where["to_id"] = "agent_" . $params["agent_id"];
}else{ }else{
$where["to_id"] = "user_" . $params["user_id"]; $where["to_id"] = "user_" . $params["user_id"];
......
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