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
f796db04
Commit
f796db04
authored
Aug 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
//
parent
bffb0a81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
AppChat.php
application/chat/controller/AppChat.php
+29
-0
AAgentBankValidate.php
application/index/validate/AAgentBankValidate.php
+3
-2
route.php
application/route.php
+1
-0
No files found.
application/chat/controller/AppChat.php
View file @
f796db04
...
@@ -672,6 +672,7 @@ class AppChat extends Basic
...
@@ -672,6 +672,7 @@ 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"
]);
...
@@ -691,9 +692,37 @@ class AppChat extends Basic
...
@@ -691,9 +692,37 @@ 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_del'
=>
0
]);
//审核信息
return
$this
->
response
(
"200"
,
"success"
,
$data
);
return
$this
->
response
(
"200"
,
"success"
,
$data
);
}
}
/**
* 审核消息已读
*
* @return \think\Response
*/
public
function
updateSystemMessageCheckIsRead
()
{
$params
=
$this
->
params
;
/* $params = array(
"agent_id" => 1,//经纪人id
"read_ids" => "1,2,3" //需要修改的消息id
);*/
if
(
empty
(
$params
[
'agent_id'
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$msg_check_model
=
new
MPushCheckMessage
();
//修改已读消息
if
(
!
empty
(
$params
[
'read_ids'
]))
{
$where_arr
[
"id"
]
=
array
(
"in"
,
$params
[
"read_ids"
]);
$where_arr
[
"is_read"
]
=
0
;
$update_arr
[
"is_read"
]
=
1
;
$msg_check_model
->
updateIsRead
(
$where_arr
,
$update_arr
);
}
return
$this
->
response
(
"200"
,
"success"
);
}
/**
/**
* 获取未读消息
* 获取未读消息
* @return \think\Response
* @return \think\Response
...
...
application/index/validate/AAgentBankValidate.php
View file @
f796db04
...
@@ -41,7 +41,7 @@ class AAgentBankValidate extends Validate
...
@@ -41,7 +41,7 @@ class AAgentBankValidate extends Validate
'id_card_image_back.require'
=>
'身份证背面必传'
,
'id_card_image_back.require'
=>
'身份证背面必传'
,
];
];
protected
$scene
=
[
protected
$scene
=
[
'add'
=>
'agent_id,account,bank,card_no
,id_card,id_card_image_front,id_card_image_back
'
,
'add'
=>
'agent_id,account,bank,card_no'
,
'edit'
=>
'id,agent_id,account,bank,card_no
,id_card
'
,
'edit'
=>
'id,agent_id,account,bank,card_no'
,
];
];
}
}
\ No newline at end of file
application/route.php
View file @
f796db04
...
@@ -482,6 +482,7 @@ Route::group('index', [
...
@@ -482,6 +482,7 @@ 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'
]],
...
...
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