Commit 4fb75a66 authored by hujun's avatar hujun

-

parent 64d7f09e
...@@ -672,7 +672,6 @@ class AppChat extends Basic ...@@ -672,7 +672,6 @@ class AppChat extends Basic
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$msgModel = new MPushMessage(); $msgModel = new MPushMessage();
$msg_check_model= new MPushCheckMessage();
//修改已读消息 //修改已读消息
if (!empty($params['read_ids'])) { if (!empty($params['read_ids'])) {
$where_arr["id"] = array("in", $params["read_ids"]); $where_arr["id"] = array("in", $params["read_ids"]);
...@@ -692,7 +691,6 @@ class AppChat extends Basic ...@@ -692,7 +691,6 @@ class AppChat extends Basic
$data["report_count"] = $msgModel->getListCountByWhere($param); $data["report_count"] = $msgModel->getListCountByWhere($param);
$param["type"] = array("in", "10,11"); $param["type"] = array("in", "10,11");
$data["square_count"] = $msgModel->getListCountByWhere($param); $data["square_count"] = $msgModel->getListCountByWhere($param);
$data['check_count'] = $msg_check_model->getTotal(['addressee_id'=>$params['agent_id'],'is_read'=>0]); //审核信息
return $this->response("200", "success", $data); return $this->response("200", "success", $data);
} }
...@@ -720,7 +718,8 @@ class AppChat extends Basic ...@@ -720,7 +718,8 @@ class AppChat extends Basic
$update_arr["is_read"] = 1; $update_arr["is_read"] = 1;
$msg_check_model->updateIsRead($where_arr, $update_arr); $msg_check_model->updateIsRead($where_arr, $update_arr);
} }
return $this->response("200", "success"); $data['check_count'] = $msg_check_model->getTotal(['addressee_id'=>$params['agent_id'],'is_read'=>0]); //审核信息
return $this->response("200", "success", $data);
} }
/** /**
......
...@@ -482,7 +482,6 @@ Route::group('index', [ ...@@ -482,7 +482,6 @@ Route::group('index', [
'delAgentsBlackListImg' => ['index/broker/delAgentsBlackListImg', ['method' => 'GET|POST']],//黑名单删除图片 'delAgentsBlackListImg' => ['index/broker/delAgentsBlackListImg', ['method' => 'GET|POST']],//黑名单删除图片
'getSystemMessageByUser' => ['index/broker/getSystemMessageByUser', ['method' => 'GET']],//未读消息列表 'getSystemMessageByUser' => ['index/broker/getSystemMessageByUser', ['method' => 'GET']],//未读消息列表
'updateSystemMessageIsRead' => ['index/broker/updateSystemMessageIsRead', ['method' => 'POST']],//已读状态 'updateSystemMessageIsRead' => ['index/broker/updateSystemMessageIsRead', ['method' => 'POST']],//已读状态
'updateSystemMessageCheckIsRead' => ['index/broker/updateSystemMessageCheckIsRead', ['method' => 'POST']],//审核消息-已读状态
'userDetail' => ['index/UserLog/userDetail', ['method' => 'get|post']], 'userDetail' => ['index/UserLog/userDetail', ['method' => 'get|post']],
'userLog' => ['index/UserLog/userLog', ['method' => 'get|post']], 'userLog' => ['index/UserLog/userLog', ['method' => 'get|post']],
...@@ -711,8 +710,7 @@ Route::group('chat', [ ...@@ -711,8 +710,7 @@ Route::group('chat', [
'getCheckMessageByAgentId' => ['chat/AppChat/getCheckMessageByAgentId', ['method' => 'get']], 'getCheckMessageByAgentId' => ['chat/AppChat/getCheckMessageByAgentId', ['method' => 'get']],
'updateSystemMessageIsRead' => ['chat/AppChat/updateSystemMessageIsRead', ['method' => 'post|get']], 'updateSystemMessageIsRead' => ['chat/AppChat/updateSystemMessageIsRead', ['method' => 'post|get']],
'getMessageIsRead' => ['chat/AppChat/getMessageIsRead', ['method' => 'post|get']], 'getMessageIsRead' => ['chat/AppChat/getMessageIsRead', ['method' => 'post|get']],
'updateSystemMessageCheckIsRead' => ['chat/AppChat/updateSystemMessageCheckIsRead', ['method' => 'post|get']],//审核消息
]); ]);
Route::group('task', [ Route::group('task', [
......
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