mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-13 21:53:41 +08:00
fix:@消息校验问题
This commit is contained in:
@@ -66,7 +66,7 @@ public class TextMsgHandler extends AbstractMsgHandler {
|
|||||||
AssertUtil.equal(replyMsg.getRoomId(), request.getRoomId(), "只能回复相同会话内的消息");
|
AssertUtil.equal(replyMsg.getRoomId(), request.getRoomId(), "只能回复相同会话内的消息");
|
||||||
}
|
}
|
||||||
if (CollectionUtil.isNotEmpty(body.getAtUidList())) {
|
if (CollectionUtil.isNotEmpty(body.getAtUidList())) {
|
||||||
AssertUtil.isTrue(body.getAtUidList().size() > 10, "一次别艾特这么多人");
|
AssertUtil.isTrue(body.getAtUidList().size() < 10, "一次别艾特这么多人");
|
||||||
List<Long> atUidList = body.getAtUidList();
|
List<Long> atUidList = body.getAtUidList();
|
||||||
Map<Long, User> batch = userInfoCache.getBatch(atUidList);
|
Map<Long, User> batch = userInfoCache.getBatch(atUidList);
|
||||||
AssertUtil.equal(atUidList.size(), batch.values().size(), "@用户不存在");
|
AssertUtil.equal(atUidList.size(), batch.values().size(), "@用户不存在");
|
||||||
|
|||||||
Reference in New Issue
Block a user