Explorar o código

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

liusw %!s(int64=6) %!d(string=hai) anos
pai
achega
ee67c3f777

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