修改info未赋值问题

This commit is contained in:
chenshaohua
2026-06-17 18:21:31 +08:00
parent 3413da2637
commit c368e3590a

View File

@@ -232,7 +232,7 @@ public class SsoService {
isCompanyUser = "01".equals(isCompanyUser) ? "1" : "0";
//获取身份证号
String personCardNo = null;
JSONObject info = null;
JSONObject info = userJson.getJSONObject("info");;
//判断是否是企业
boolean hasRecruitRole = Optional.ofNullable(userJson.getJSONArray("roles"))
.filter(arr -> !arr.isEmpty())
@@ -243,6 +243,7 @@ public class SsoService {
Long roleCode = role.getLong("roleCode");
return roleCode != null && roleCode == 1102L;
});
//保存企业信息
if("0".equals(isCompanyUser) && hasRecruitRole){
personCardNo=info.getString("entCreditCode");