Commit 2581f21c by Future

日志添加

parent 555ec8c7
......@@ -203,8 +203,11 @@ public class NormalChatAction {
private void sendMsgToMember(ImApplication imApplication, ImConversationMembers member, ImMessageOnlineSend imMessageOnlineSend, PushVO push, Boolean isPush) {
// 在线用户直接发消息
long time1 = System.currentTimeMillis();
sendMsgForOnline(member.getFkClientId(), imMessageOnlineSend);
log.info("会话id{} 在线发消息耗时 {}", imMessageOnlineSend.getConversationId(), System.currentTimeMillis()-time1);
if (isPush && !member.getDoNotDisturb()) {
long time2 = System.currentTimeMillis();
try {
// 异步推送系统通知消息 5分钟内推一次消息
PushDTO pushDTO = mqSender.buildPushDto(push, member.getFkClientId(), member.getClientId(), imApplication);
......@@ -214,6 +217,7 @@ public class NormalChatAction {
} catch (Exception e) {
log.info("发送系统消息失败异常 ", e);
}
log.info("会话id{} mq推送耗时 {}", imMessageOnlineSend.getConversationId(), System.currentTimeMillis()-time2);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment