BUGFIX: 系统消息发布 广播时消息数量错误

This commit is contained in:
2026-01-23 11:46:08 +08:00
parent a426caaca3
commit 7a44d67dbf

View File

@@ -194,6 +194,8 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
if (!type.equals("system")) { if (!type.equals("system")) {
// 个人未读消息 // 个人未读消息
count = getUnreadCountByType(type, receiverId); count = getUnreadCountByType(type, receiverId);
} else if (Objects.isNull(receiverId)) {
count = 1L;
} else { } else {
// 系统未读消息 // 系统未读消息
count = getUnreadSystemNotification(receiverId); count = getUnreadSystemNotification(receiverId);