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
be081784
Commit
be081784
authored
Jul 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b3b16dcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ChatService.php
application/chat/service/ChatService.php
+7
-6
No files found.
application/chat/service/ChatService.php
View file @
be081784
...
@@ -210,18 +210,19 @@ class ChatService
...
@@ -210,18 +210,19 @@ class ChatService
$userExt
=
new
ChatUserExt
();
$userExt
=
new
ChatUserExt
();
$where
[
'only_id'
]
=
$target
;
$where
[
'only_id'
]
=
$target
;
$user_id
=
0
;
if
(
$is_user
)
{
if
(
$is_user
)
{
$m_user
=
new
ChatUser
();
$user_where
[
'only_id'
]
=
$from
;
$user_where
[
'status'
]
=
1
;
$user_arr
=
$m_user
->
getChatUserOne
(
'user_id'
,
$user_where
);
$user_id
=
empty
(
$user_arr
[
'user_id'
])
?
0
:
$user_arr
[
'user_id'
]
;
$where
[
'type'
]
=
2
;
$where
[
'type'
]
=
2
;
}
else
{
}
else
{
$where
[
'type'
]
=
1
;
$where
[
'type'
]
=
1
;
}
}
$m_user
=
new
ChatUser
();
$user_where
[
'only_id'
]
=
$from
;
$user_where
[
'status'
]
=
0
;
$user_arr
=
$m_user
->
getChatUserOne
(
'user_id'
,
$user_where
);
$user_id
=
empty
(
$user_arr
[
'user_id'
])
?
0
:
$user_arr
[
'user_id'
]
;
$info
=
$userExt
->
getChatUserExtByUserId
(
$where
,
'a.id,a.ext_id,a.device_id,a.push_id,b.user_id'
);
$info
=
$userExt
->
getChatUserExtByUserId
(
$where
,
'a.id,a.ext_id,a.device_id,a.push_id,b.user_id'
);
if
(
count
(
$info
)
<=
0
)
{
if
(
count
(
$info
)
<=
0
)
{
...
...
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