Commit 1db5bc69 authored by zhuwei's avatar zhuwei

1

parent 60a04ec6
...@@ -565,6 +565,36 @@ class AppChat extends Basic ...@@ -565,6 +565,36 @@ class AppChat extends Basic
} }
public function getSquareMessageByAgentId()
{
$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";
//获取此经纪人的所有盘方楼盘id
$param["addressee_id"] = $params["agent_id"];
$param["type"] = array('in','10,11');
$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
......
...@@ -580,6 +580,7 @@ Route::group('chat', [ ...@@ -580,6 +580,7 @@ Route::group('chat', [
'getSystemMessageByShop' => ['chat/AppChat/getSystemMessageByShop', ['method' => 'post|get']], 'getSystemMessageByShop' => ['chat/AppChat/getSystemMessageByShop', ['method' => 'post|get']],
'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']],
'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