diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SsoService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SsoService.java index 9f0bb77..78d4f2d 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SsoService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SsoService.java @@ -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");