Commit 33473cca by Shadow

Merge remote-tracking branch 'origin/xiaohudou_20220427' into xiaohudou_20220427

parents ff658841 05690194
......@@ -179,6 +179,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
attributes);
ImConversationCreateVo imConversationCreateVo = new ImConversationCreateVo();
imConversationCreateVo.setId(conversation.getId());
return imConversationCreateVo;
}
if (ChatTypeEnum.CHAT_ROOM.getCode().equals(chatType)) {
// 聊天室
......@@ -347,8 +348,10 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
imConversationMapper.addMemberCount(imApplication.getId(), imClientToConversation.getConversationId(), needAddCount);
ImConversationQueryVo conversation = imConversationMapper.getImConversationById(imClientToConversation.getConversationId());
if (conversation.getMemberCount() > 2000) {
// 小虎豆不接万人群
throw new BusinessException("群成员超过最大数量,请确认");
// 升级为万人群
imConversationMapper.upgradeToThousandChat(imApplication.getId(), imClientToConversation.getConversationId());
// imConversationMapper.upgradeToThousandChat(imApplication.getId(), imClientToConversation.getConversationId());
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment