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
0c5eb387
Commit
0c5eb387
authored
Nov 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保留一个有效状态
parent
677d3c66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ChatService.php
application/chat/service/ChatService.php
+11
-0
No files found.
application/chat/service/ChatService.php
View file @
0c5eb387
...
...
@@ -161,6 +161,8 @@ class ChatService
if
(
$v
[
'is_forbidden'
]
==
0
)
{
if
(
$v
[
'ext_id'
]
!=
$chat_user_id
)
{
$this
->
chatUserExtModel
->
addChatUserExt
([
'is_forbidden'
=>
1
],
$v
[
'id'
]);
}
else
{
$current_user_id
=
$chat_user_id
;
}
}
else
{
if
(
$v
[
'ext_id'
]
==
$chat_user_id
&&
$current_user_id
!=
$chat_user_id
)
{
...
...
@@ -177,6 +179,15 @@ class ChatService
$params
[
"push_id"
]
=
$push_id
;
$params
[
"is_forbidden"
]
=
0
;
$result
=
$this
->
chatUserExtModel
->
addChatUserExt
(
$params
);
}
else
{
$old_device_where
[
'ext_id'
]
=
$current_user_id
;
$old_device_where
[
'is_forbidden'
]
=
0
;
$old_device_where
[
'push_id'
]
=
[
'<>'
,
$push_id
];
$info
=
$this
->
chatUserExtModel
->
getChatUserExt
(
$where
,
'id'
);
foreach
(
$info
as
$k2
=>
$v2
)
{
$this
->
chatUserExtModel
->
addChatUserExt
([
'is_forbidden'
=>
1
],
$v2
[
'id'
]);
}
}
}
else
{
//todo 保存或更新push_id
...
...
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