From c7eaa24a84d7bfaea3e3e5fd78cd0d02d7190a65 Mon Sep 17 00:00:00 2001 From: chenyanchang <30190327@qq.com> Date: Mon, 15 Jun 2026 17:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E6=A0=A1=E9=AA=8Cap?= =?UTF-8?q?puser=E5=AD=98=E5=9C=A8=E6=97=B6=EF=BC=8C=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/framework/web/service/SsoService.java | 7 ++++++- 1 file changed, 6 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 caa0352..2acfbba 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 @@ -439,7 +439,12 @@ public class SsoService { appUser.setPhone(phone); } - appUserService.insertAppUser(appUser); + AppUser checkUser = appUserService.selectAppUserByUserId(appUser.getUserId()); + if (checkUser != null) { + appUserService.updateAppUser(appUser); + } else { + appUserService.insertAppUser(appUser); + } return appUser; }