Commit d1a72162 authored by hujun's avatar hujun

审核消息列表

parent fe956ab0
...@@ -587,7 +587,7 @@ class AppChat extends Basic ...@@ -587,7 +587,7 @@ class AppChat extends Basic
//获取此经纪人的所有盘方楼盘id //获取此经纪人的所有盘方楼盘id
$param["addressee_id"] = $params["agent_id"]; $param["addressee_id"] = $params["agent_id"];
$param["type"] = ['in', '8,14']; $param["type"] = ['in', '8'];
$msgModel = new MPushMessage(); $msgModel = new MPushMessage();
$history_result = $msgModel->getListByWhere($field, $param, $page_no, $page_size); $history_result = $msgModel->getListByWhere($field, $param, $page_no, $page_size);
...@@ -627,6 +627,37 @@ class AppChat extends Basic ...@@ -627,6 +627,37 @@ class AppChat extends Basic
return $this->response("200", "request success", $history_result); return $this->response("200", "request success", $history_result);
} }
/**
* 审核消息
* @return \think\Response
*/
public function getCheckMessageByAgentId()
{
$params = $this->params;
/* $params = array(
"agent_id" => 5739,
'page_no' => '1', //第几页
'page_size' => '15' //每页多少条
);*/
if (!$params['agent_id']) {
return $this->response("101", "请求参数错误");
}
$page_no = empty($params['page_no']) ? 1 : $params['page_no'];
$page_size = empty($params['page_size']) ? 15 : $params['page_size'];
$field = "id,addressee_id,type,message,user_id,create_time,is_read,order_id,house_id as square_id";
$param["addressee_id"] = $params["agent_id"];
$param["type"] = array('in','13,14,16,17,18,19,20');
$msgModel = new MPushMessage();
$history_result = $msgModel->getListByWhere($field, $param, $page_no, $page_size);
return $this->response("200", "request success", $history_result);
}
/** /**
* 获取商铺消息和客户消息的未读消息个数,并修改已读消息状态 * 获取商铺消息和客户消息的未读消息个数,并修改已读消息状态
* @return \think\Response * @return \think\Response
......
...@@ -704,6 +704,7 @@ Route::group('chat', [ ...@@ -704,6 +704,7 @@ Route::group('chat', [
'getSystemMessageByUser' => ['chat/AppChat/getSystemMessageByUser', ['method' => 'post|get']], 'getSystemMessageByUser' => ['chat/AppChat/getSystemMessageByUser', ['method' => 'post|get']],
'getSystemMessageByReport' => ['chat/AppChat/getSystemMessageByReport', ['method' => 'post|get']], 'getSystemMessageByReport' => ['chat/AppChat/getSystemMessageByReport', ['method' => 'post|get']],
'getSquareMessageByAgentId' => ['chat/AppChat/getSquareMessageByAgentId', ['method' => 'post|get']], 'getSquareMessageByAgentId' => ['chat/AppChat/getSquareMessageByAgentId', ['method' => 'post|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']],
......
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