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
c6cd1fd5
Commit
c6cd1fd5
authored
Jul 18, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤回 聊天msg_id为0判断 标记----------------------
parent
3d8453b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
ChatService.php
application/chat/service/ChatService.php
+5
-9
No files found.
application/chat/service/ChatService.php
View file @
c6cd1fd5
...
...
@@ -441,15 +441,11 @@ class ChatService
}
try
{
if
(
$relation_list
[
$item
[
"id"
]][
0
][
"msg_id"
]
>
0
)
{
$where_
[
"id"
]
=
array
(
"between"
,
array
(
$relation_list
[
$item
[
"id"
]][
0
][
"msg_id"
],
$chat_info
[
0
][
"id"
]
)
);
//计算未读消息个数
$unread_count
=
$msgModel
->
getTotalUnread
(
$where_
,
"id"
);
$result
[
$key
][
"unread"
]
=
$unread_count
>
0
?
$unread_count
-
1
:
0
;
//dump($unread_count);
}
else
{
$result
[
$key
][
"unread"
]
=
0
;
}
$where_
[
"id"
]
=
array
(
"between"
,
array
(
$relation_list
[
$item
[
"id"
]][
0
][
"msg_id"
],
$chat_info
[
0
][
"id"
]
)
);
//计算未读消息个数
$unread_count
=
$msgModel
->
getTotalUnread
(
$where_
,
"id"
);
//dump($unread_count);
$result
[
$key
][
"unread"
]
=
$unread_count
>
0
?
$unread_count
-
1
:
0
;
}
catch
(
Exception
$exception
)
{
$result
[
$key
][
"unread"
]
=
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