Commit 9369f317 by giaogiao

创建会话, 邀请人不能为空

parent 0e5722bb
...@@ -82,6 +82,11 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -82,6 +82,11 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
ImClient createClient = imClientService.getCurentClient(); ImClient createClient = imClientService.getCurentClient();
if (imConversationCreate.getClientIds().size() == 0) {
log.info("没有成员");
return ApiResult.result(ApiCode.CLIENT_NOT_FOUNT, null);
}
// 成员不存在,不能创建会话 // 成员不存在,不能创建会话
for (String id : imConversationCreate.getClientIds()) { for (String id : imConversationCreate.getClientIds()) {
ImClient imClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda() ImClient imClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda()
......
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