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
563ec697
Commit
563ec697
authored
Nov 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
带看消息
parent
77c67495
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
5 deletions
+41
-5
AppChat.php
application/chat/controller/AppChat.php
+35
-0
route.php
application/route.php
+6
-5
No files found.
application/chat/controller/AppChat.php
View file @
563ec697
...
@@ -525,6 +525,41 @@ class AppChat extends Basic
...
@@ -525,6 +525,41 @@ class AppChat extends Basic
}
}
/**
* 带看消息
* @return \think\Response
*/
public
function
getSystemMessageByReport
()
{
$params
=
$this
->
params
;
/* $params = array(
"agent_id" => 5741,
'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"
;
//获取此经纪人的所有盘方楼盘id
$param
[
"addressee_id"
]
=
$params
[
"agent_id"
];
$param
[
"type"
]
=
7
;
$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 @
563ec697
...
@@ -470,11 +470,12 @@ Route::group('chat', [
...
@@ -470,11 +470,12 @@ Route::group('chat', [
'delGroupManage'
=>
[
'chat/Group/delGroupManage'
,
[
'method'
=>
'post|get'
]],
'delGroupManage'
=>
[
'chat/Group/delGroupManage'
,
[
'method'
=>
'post|get'
]],
'pushMsg_gethouseinfo'
=>
[
'chat/AppChat/getHouseInfoByFrom'
,
[
'method'
=>
'post|get'
]],
'pushMsg_gethouseinfo'
=>
[
'chat/AppChat/getHouseInfoByFrom'
,
[
'method'
=>
'post|get'
]],
'getUserInfoByFrom'
=>
[
'chat/AppChat/getUserInfoByFrom'
,
[
'method'
=>
'post|get'
]],
'getUserInfoByFrom'
=>
[
'chat/AppChat/getUserInfoByFrom'
,
[
'method'
=>
'post|get'
]],
'getChatRelation'
=>
[
'chat/AppChat/getChatRelation'
,
[
'method'
=>
'post|get'
]],
'getChatRelation'
=>
[
'chat/AppChat/getChatRelation'
,
[
'method'
=>
'post|get'
]
],
'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'
]
],
'updateSystemMessageIsRead'
=>
[
'chat/AppChat/updateSystemMessageIsRead'
,
[
'method'
=>
'post|get'
]],
'getSystemMessageByReport'
=>
[
'chat/AppChat/getSystemMessageByReport'
,
[
'method'
=>
'post|get'
]
],
'getMessageIsRead'
=>
[
'chat/AppChat/getMessageIsRead'
,
[
'method'
=>
'post|get'
]],
'updateSystemMessageIsRead'
=>
[
'chat/AppChat/updateSystemMessageIsRead'
,
[
'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