From c368e3590a01930ae25bc35db80c1d2ce20c692d Mon Sep 17 00:00:00 2001 From: chenshaohua <635616957@qq.com> Date: Wed, 17 Jun 2026 18:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9info=E6=9C=AA=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/framework/web/service/SsoService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");