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
4fb75a66
Commit
4fb75a66
authored
Aug 21, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
64d7f09e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
AppChat.php
application/chat/controller/AppChat.php
+2
-3
route.php
application/route.php
+1
-3
No files found.
application/chat/controller/AppChat.php
View file @
4fb75a66
...
@@ -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
);
}
}
/**
/**
...
...
application/route.php
View file @
4fb75a66
...
@@ -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'
,
[
...
...
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