瀏覽代碼

用户评价

779513719 4 年之前
父節點
當前提交
52023eeee4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server-chat/src/main/java/com/cn/processor/IMChatAsyncChatMessageProcessor.java

+ 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);