Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
2581f21c
Commit
2581f21c
authored
Nov 15, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志添加
parent
555ec8c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
+4
-0
No files found.
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
View file @
2581f21c
...
@@ -203,8 +203,11 @@ public class NormalChatAction {
...
@@ -203,8 +203,11 @@ public class NormalChatAction {
private
void
sendMsgToMember
(
ImApplication
imApplication
,
ImConversationMembers
member
,
ImMessageOnlineSend
imMessageOnlineSend
,
PushVO
push
,
Boolean
isPush
)
{
private
void
sendMsgToMember
(
ImApplication
imApplication
,
ImConversationMembers
member
,
ImMessageOnlineSend
imMessageOnlineSend
,
PushVO
push
,
Boolean
isPush
)
{
// 在线用户直接发消息
// 在线用户直接发消息
long
time1
=
System
.
currentTimeMillis
();
sendMsgForOnline
(
member
.
getFkClientId
(),
imMessageOnlineSend
);
sendMsgForOnline
(
member
.
getFkClientId
(),
imMessageOnlineSend
);
log
.
info
(
"会话id{} 在线发消息耗时 {}"
,
imMessageOnlineSend
.
getConversationId
(),
System
.
currentTimeMillis
()-
time1
);
if
(
isPush
&&
!
member
.
getDoNotDisturb
())
{
if
(
isPush
&&
!
member
.
getDoNotDisturb
())
{
long
time2
=
System
.
currentTimeMillis
();
try
{
try
{
// 异步推送系统通知消息 5分钟内推一次消息
// 异步推送系统通知消息 5分钟内推一次消息
PushDTO
pushDTO
=
mqSender
.
buildPushDto
(
push
,
member
.
getFkClientId
(),
member
.
getClientId
(),
imApplication
);
PushDTO
pushDTO
=
mqSender
.
buildPushDto
(
push
,
member
.
getFkClientId
(),
member
.
getClientId
(),
imApplication
);
...
@@ -214,6 +217,7 @@ public class NormalChatAction {
...
@@ -214,6 +217,7 @@ public class NormalChatAction {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"发送系统消息失败异常 "
,
e
);
log
.
info
(
"发送系统消息失败异常 "
,
e
);
}
}
log
.
info
(
"会话id{} mq推送耗时 {}"
,
imMessageOnlineSend
.
getConversationId
(),
System
.
currentTimeMillis
()-
time2
);
}
}
}
}
...
...
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