|
|
|
@ -201,7 +201,9 @@ public class AppEnterpriseLoginServiceImpl implements IAppEnterpriseLoginService |
|
|
|
private EnterpriseUser saveOrUpdateEnterpriseUser(JSONObject userInfo) { |
|
|
|
String phone = IdCardCryptoUtil.symmetricDecryptIdCard(secretKey, userInfo.getString("phone")); |
|
|
|
String account = userInfo.getString("account"); |
|
|
|
String siqUserId = userInfo.getString("userId"); |
|
|
|
String loginName = StringUtils.isNotEmpty(account) ? account : phone; |
|
|
|
loginName = StringUtils.isNotEmpty(loginName) ? loginName : siqUserId; |
|
|
|
String userType = UserType.APP_USER.getUserType(); |
|
|
|
EnterpriseUser newUser = null; |
|
|
|
if (StringUtils.isEmpty(loginName)) { |
|
|
|
@ -247,6 +249,7 @@ public class AppEnterpriseLoginServiceImpl implements IAppEnterpriseLoginService |
|
|
|
user.setLoginName(loginName); |
|
|
|
user.setPhonenumber(phone); |
|
|
|
user.setNickName(userInfo.getString("userName")); |
|
|
|
user.setSiqUserId(userInfo.getString("userId")); |
|
|
|
|
|
|
|
// 设置默认部门ID
|
|
|
|
user.setDeptId(UserConstants.DEFAULT_DEPT); |
|
|
|
|