Commit 2422f73d by Future

群成员最大数量控制

parent 923ad37c
...@@ -347,8 +347,10 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -347,8 +347,10 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
imConversationMapper.addMemberCount(imApplication.getId(), imClientToConversation.getConversationId(), needAddCount); imConversationMapper.addMemberCount(imApplication.getId(), imClientToConversation.getConversationId(), needAddCount);
ImConversationQueryVo conversation = imConversationMapper.getImConversationById(imClientToConversation.getConversationId()); ImConversationQueryVo conversation = imConversationMapper.getImConversationById(imClientToConversation.getConversationId());
if (conversation.getMemberCount() > 2000) { if (conversation.getMemberCount() > 2000) {
// 小虎豆不接万人群
throw new BusinessException("群成员超过最大数量,请确认");
// 升级为万人群 // 升级为万人群
imConversationMapper.upgradeToThousandChat(imApplication.getId(), imClientToConversation.getConversationId()); // imConversationMapper.upgradeToThousandChat(imApplication.getId(), imClientToConversation.getConversationId());
} }
return true; 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