消息推送连接关闭时避免报错

This commit is contained in:
2024-10-01 10:29:06 +08:00
parent f19a15dbe8
commit 283b6244b1
2 changed files with 14 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
data.put(type, count);
resp.add(data);
String jsonString = JSON.toJSONString(resp);
log.info("消息推送 {}", jsonString);
// log.info("消息推送 {}", jsonString);
try {
notificationConnection.sendMsg(jsonString, receiverId);