This commit is contained in:
chenyanchang
2026-06-17 13:04:18 +08:00
parent c0c769597c
commit 847f270818

View File

@@ -531,19 +531,19 @@ public class SsoService {
//获取身份证 //获取身份证
String personCardNo=""; String personCardNo="";
//1.求职者 2.风格员 //0.企业 1.求职者 2.风格员
if("1".equals(isCompanyUser) || "2".equals(isCompanyUser)){ if("0".equals(isCompanyUser)){
personCardNo = info != null && info.containsKey("personCardNo") ? info.getString("personCardNo") : userJson.getString("idCardNo"); personCardNo = info.getString("entCreditCode");
personCardNo = EncryptUtil.decryptByAppIdAndSecret(personCardNo, webAppId, webAppSecret); String phone = info.getString("entAdminPhone");
String phone = info != null && info.containsKey("personPhone") ? info.getString("personPhone") : userJson.getString("phonenumber");
//解密电话号码 //解密电话号码
if (StringUtils.isNotEmpty(phone)) { if (StringUtils.isNotEmpty(phone)) {
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret); phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);
sysUser.setPhonenumber(phone); sysUser.setPhonenumber(phone);
} }
} else { } else {
personCardNo = info.getString("entCreditCode"); personCardNo = info != null && info.containsKey("personCardNo") ? info.getString("personCardNo") : userJson.getString("idCardNo");
String phone = info.getString("entAdminPhone"); personCardNo = EncryptUtil.decryptByAppIdAndSecret(personCardNo, webAppId, webAppSecret);
String phone = info != null && info.containsKey("personPhone") ? info.getString("personPhone") : userJson.getString("phonenumber");
//解密电话号码 //解密电话号码
if (StringUtils.isNotEmpty(phone)) { if (StringUtils.isNotEmpty(phone)) {
phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret); phone = EncryptUtil.decryptByAppIdAndSecret(phone, webAppId, webAppSecret);