瀏覽代碼

fix:新增或修改用户信息调整

liusw 6 年之前
父節點
當前提交
ee67c3f777
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      sso-server/src/main/java/com/uas/sso/sync/entity/SsoServiceUser.java

+ 6 - 4
sso-server/src/main/java/com/uas/sso/sync/entity/SsoServiceUser.java

@@ -171,10 +171,12 @@ public class SsoServiceUser {
         syncUser.setSalt(Long.valueOf(ssoServiceUser.getUu()).toString());
         syncUser.setFromApp(ssoServiceUser.getSource());
         syncUser.setPassword(ssoServiceUser.getPassword());
-        syncUser.setEmailValidCode(ssoServiceUser.getEmail() == null || ssoServiceUser.getEmail().equals("") ? (short) 0 : (short) 2);
-        syncUser.setIdentityValidCode((short) 0);
-        syncUser.setMobileValidCode((short) 2);
-        syncUser.setPasswordLevel((short) 2);
+        if (syncUser == null) {
+            syncUser.setEmailValidCode(ssoServiceUser.getEmail() == null || ssoServiceUser.getEmail().equals("") ? (short) 0 : (short) 2);
+            syncUser.setIdentityValidCode((short) 0);
+            syncUser.setMobileValidCode((short) 2);
+            syncUser.setPasswordLevel((short) 2);
+        }
         return syncUser;
     }
 }