update
This commit is contained in:
@@ -461,7 +461,20 @@ public class SsoService {
|
|||||||
//获取身份证,再获取年龄
|
//获取身份证,再获取年龄
|
||||||
String personCardNo = null;
|
String personCardNo = null;
|
||||||
//1.求职者 2.网格员
|
//1.求职者 2.网格员
|
||||||
if("1".equals(isCompanyUser) || "2".equals(isCompanyUser)){
|
if ("0".equals(isCompanyUser)) {
|
||||||
|
appUser.setName(userJson.getString("nickName"));
|
||||||
|
appUser.setAddress(info.getString("entRegisteredAddress"));
|
||||||
|
appUser.setDomicileAddress(info.getString("entRegisteredAddress"));
|
||||||
|
personCardNo = info.getString("entCreditCode");
|
||||||
|
appUser.setAddress(info.getString("entRegisteredAddress"));
|
||||||
|
String phone = info.getString("entAdminPhone");
|
||||||
|
//解密电话号码
|
||||||
|
if (StringUtils.isNotEmpty(phone)) {
|
||||||
|
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);
|
||||||
|
appUser.setPhone(phone);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
appUser.setName(info != null ? info.getString("personName") : userJson.getString("nickName"));
|
appUser.setName(info != null ? info.getString("personName") : userJson.getString("nickName"));
|
||||||
appUser.setSex(info != null ? info.getString("personSex") : userJson.getString("sex"));
|
appUser.setSex(info != null ? info.getString("personSex") : userJson.getString("sex"));
|
||||||
appUser.setBirthDate(info.getString("personBirthday"));
|
appUser.setBirthDate(info.getString("personBirthday"));
|
||||||
@@ -481,16 +494,6 @@ public class SsoService {
|
|||||||
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);
|
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);
|
||||||
appUser.setPhone(phone);
|
appUser.setPhone(phone);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
personCardNo = info.getString("entCreditCode");
|
|
||||||
appUser.setAddress(info.getString("entRegisteredAddress"));
|
|
||||||
String phone = info.getString("entAdminPhone");
|
|
||||||
//解密电话号码
|
|
||||||
if (StringUtils.isNotEmpty(phone)) {
|
|
||||||
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);
|
|
||||||
appUser.setPhone(phone);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
appUser.setIdCard(personCardNo);
|
appUser.setIdCard(personCardNo);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user