Procházet zdrojové kódy

游客和客户id统一为userId

779513719 před 4 roky
rodič
revize
04941b241b

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