|
|
@@ -67,10 +67,10 @@ public class GroupMessageServiceImpl extends ServiceImpl<GroupMessageMapper, Gro
|
|
|
}
|
|
|
// 群聊成员列表
|
|
|
List<Long> userIds = groupMemberService.findUserIdsByGroupId(group.getId());
|
|
|
- if (dto.getReceipt() && userIds.size() > Constant.MAX_LARGE_GROUP_MEMBER) {
|
|
|
+ if (dto.getReceipt() && userIds.size() > Constant.MAX_NORMAL_GROUP_MEMBER) {
|
|
|
// 大群的回执消息过于消耗资源,不允许发送
|
|
|
throw new GlobalException(
|
|
|
- String.format("当前群聊大于%s人,不支持发送回执消息", Constant.MAX_LARGE_GROUP_MEMBER));
|
|
|
+ String.format("当前群聊大于%s人,不支持发送回执消息", Constant.MAX_NORMAL_GROUP_MEMBER));
|
|
|
}
|
|
|
// 不用发给自己
|
|
|
userIds = userIds.stream().filter(id -> !session.getUserId().equals(id)).collect(Collectors.toList());
|