Commit 907ea87f by wei

修复bug:服务端api创建会话

parent 49b7e93d
...@@ -237,7 +237,6 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -237,7 +237,6 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 创建者 // 创建者
ImClient createClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda() ImClient createClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda()
.select(ImClient::getId)
.eq(ImClient::getFkAppid, imApplication.getId()) .eq(ImClient::getFkAppid, imApplication.getId())
.eq(ImClient::getClientId, imConversationRestApiCreate.getCreator())); .eq(ImClient::getClientId, imConversationRestApiCreate.getCreator()));
...@@ -250,7 +249,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -250,7 +249,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
for (String id : imConversationRestApiCreate.getClientIds()) { for (String id : imConversationRestApiCreate.getClientIds()) {
ImClient imClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda() ImClient imClient = imClientService.getOne(new QueryWrapper<ImClient>().lambda()
.select(ImClient::getId) .select(ImClient::getId)
.eq(ImClient::getFkAppid, createClient.getFkAppid()) .eq(ImClient::getFkAppid, imApplication.getId())
.eq(ImClient::getClientId, id)); .eq(ImClient::getClientId, id));
if (imClient == null) { if (imClient == null) {
log.info("成员不存在,不能创建会话 client2 == null"); log.info("成员不存在,不能创建会话 client2 == null");
......
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