소스 검색

用户评价

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