Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d1a72162
Commit
d1a72162
authored
Aug 15, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核消息列表
parent
fe956ab0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
AppChat.php
application/chat/controller/AppChat.php
+32
-1
route.php
application/route.php
+1
-0
No files found.
application/chat/controller/AppChat.php
View file @
d1a72162
...
@@ -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
...
...
application/route.php
View file @
d1a72162
...
@@ -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'
]],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment