mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
MALL-KEFU: 发送消息通知所有管理员更新对话
This commit is contained in:
parent
4a39595576
commit
b5528bfc15
@ -66,8 +66,10 @@ public class KeFuMessageServiceImpl implements KeFuMessageService {
|
|||||||
// 2.2 更新会话消息冗余
|
// 2.2 更新会话消息冗余
|
||||||
conversationService.updateConversationLastMessage(kefuMessage);
|
conversationService.updateConversationLastMessage(kefuMessage);
|
||||||
|
|
||||||
// 3. 发送消息
|
// 3.1 发送消息给会员
|
||||||
getSelf().sendAsyncMessageToMember(conversation.getUserId(), KEFU_MESSAGE_TYPE, kefuMessage);
|
getSelf().sendAsyncMessageToMember(conversation.getUserId(), KEFU_MESSAGE_TYPE, kefuMessage);
|
||||||
|
// 3.2 通知所有管理员更新对话
|
||||||
|
getSelf().sendAsyncMessageToAdmin(KEFU_MESSAGE_TYPE, kefuMessage);
|
||||||
return kefuMessage.getId();
|
return kefuMessage.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ public class KeFuMessageServiceImpl implements KeFuMessageService {
|
|||||||
|
|
||||||
// 2. 更新会话消息冗余
|
// 2. 更新会话消息冗余
|
||||||
conversationService.updateConversationLastMessage(kefuMessage);
|
conversationService.updateConversationLastMessage(kefuMessage);
|
||||||
// 3. 发送消息
|
// 3. 通知所有管理员更新对话
|
||||||
getSelf().sendAsyncMessageToAdmin(KEFU_MESSAGE_TYPE, kefuMessage);
|
getSelf().sendAsyncMessageToAdmin(KEFU_MESSAGE_TYPE, kefuMessage);
|
||||||
return kefuMessage.getId();
|
return kefuMessage.getId();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user