浏览代码

游客和客户id统一为userId

779513719 4 年之前
父节点
当前提交
04941b241b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server-chat/src/main/java/com/cn/service/IMChatLoginServiceProcessor.java

+ 2 - 2
server-chat/src/main/java/com/cn/service/IMChatLoginServiceProcessor.java

@@ -214,7 +214,7 @@ public class IMChatLoginServiceProcessor implements LoginCmdProcessor {
         String nickname = map.get("nickname") == null ? null : map.get("nickname").replace("\"","");
         user.setNick(nickname);
         Map<String, Object> visitorMap = new HashMap<>();
-        visitorMap.put("visitorId",map.get("id"));
+        visitorMap.put("userId",map.get("id"));
         visitorMap.put("companyId",map.get("companyId"));
         visitorMap.put("departmentId",map.get("departmentId"));
         visitorMap.put("phone",map.get("phone") == null ? null : map.get("phone").replace("\"",""));
@@ -363,7 +363,7 @@ public class IMChatLoginServiceProcessor implements LoginCmdProcessor {
         Map<String, Object> customerMap = new HashMap<>();
         customerMap.put("isBlack",map.get("isBlack"));
         customerMap.put("isClaim",map.get("isClaim"));
-        customerMap.put("customerId",map.get("id"));
+        customerMap.put("userId",map.get("id"));
         customerMap.put("companyId",map.get("companyId"));
         customerMap.put("departmentId",map.get("departmentId"));
         customerMap.put("serviceAccountId",map.get("serviceAccountId"));