Commit 9aa48e68 authored by zw's avatar zw

bug

parent c2388c36
......@@ -613,20 +613,10 @@ class AppChat extends Basic
}
//todo 先获取是否有店铺或客户修改消息是否为0,大于0返回true,否则查询聊天消息是否有未读
$param["addressee_id"] = $params["agent_id"];
$param["type"] = 2;
$param["is_read"] = 0;
//TODO 获取未读个数
$msgModel = new MPushMessage();
$user_count = $msgModel->getListCountByWhere($param);
if ($user_count > 0) {
return $this->response("200", "success", ["is_show_red" => true]);
}
$param["type"] = array("in", "1,3,7");
$shop_count = $msgModel->getListCountByWhere($param);
if ($shop_count > 0) {
return $this->response("200", "success", ["is_show_red" => true]);
}
$param["type"] = 8;
$param["type"] = array("in", "1,2,3,7");
$shop_count = $msgModel->getListCountByWhere($param);
if ($shop_count > 0) {
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