779513719 4 лет назад
Родитель
Сommit
52023eeee4

+ 2 - 2
server-chat/src/main/java/com/cn/processor/IMChatAsyncChatMessageProcessor.java

@@ -166,14 +166,14 @@ public class IMChatAsyncChatMessageProcessor extends DefaultAsyncChatMessageProc
         String visitType = user.getVisitType();
         if(VisitTypeEnum.CUSTOMER.getKey().equals(visitType)){
             // CUSTOMER 客户  发送的消息
-            String companyId = user.getExtras().getString("customerId");
+            String companyId = user.getExtras().getString("userId");
             conversationRecordAttrs.put("from_id",Long.valueOf(companyId));
             conversationRecordAttrs.put("to_id",conversation.getLong("service_account_id"));
             conversationRecordAttrs.put("type",0);
             conversationRecordAttrs.put("chat_body_to", group.getStr("service_account_role_department_middle_id"));
         }else if(VisitTypeEnum.VISITOR.getKey().equals(visitType)){
             // VISITOR 游客  发送的消息
-            String visitorId = user.getExtras().getString("visitorId");
+            String visitorId = user.getExtras().getString("userId");
             conversationRecordAttrs.put("from_id",Long.valueOf(visitorId));
             conversationRecordAttrs.put("to_id",conversation.getLong("service_account_id"));
             conversationRecordAttrs.put("type",0);