From e257f4bae22f816aeadf1afc38aaacd8a386abaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=8C=E5=85=88=E8=88=9C?= <2499071264@qq.com> Date: Thu, 22 Oct 2026 16:57:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=92=8C=E4=BA=BA=E5=91=98=E6=8B=89=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SysDataUserPullServiceImpl.java | 5 ++-- .../budwk/app/web/commons/base/Globals.java | 5 ---- src/main/resources/application-prd.yaml | 3 +-- .../proposal/transact/write/index.html | 23 +++++++++++++++---- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/budwk/app/sys/services/impl/SysDataUserPullServiceImpl.java b/src/main/java/com/budwk/app/sys/services/impl/SysDataUserPullServiceImpl.java index f41d641..11dfc25 100644 --- a/src/main/java/com/budwk/app/sys/services/impl/SysDataUserPullServiceImpl.java +++ b/src/main/java/com/budwk/app/sys/services/impl/SysDataUserPullServiceImpl.java @@ -229,9 +229,8 @@ public class SysDataUserPullServiceImpl extends BaseServiceImpl sysUser.setUnitName(resolvedUnit.getName()); sysUser.setUnitPath(resolvedUnit.getPath()); } - if (!dataCenterProperties.isTokenEnabled() - && (resolvedUnit == null || StrUtil.isBlank(resolvedUnit.getPath()))) { - throw new BaseException("人员{}所属机构不存在或路径为空,中止本次同步", sysUser.getLoginname()); + if (resolvedUnit == null || StrUtil.isBlank(resolvedUnit.getPath())) { + log.warn("人员{}所属机构{}不存在或路径为空,保留当前机构号并继续拉取", sysUser.getLoginname(), sysUser.getUnitId()); } // 设置拉取时间 diff --git a/src/main/java/com/budwk/app/web/commons/base/Globals.java b/src/main/java/com/budwk/app/web/commons/base/Globals.java index ef67a56..20535a3 100644 --- a/src/main/java/com/budwk/app/web/commons/base/Globals.java +++ b/src/main/java/com/budwk/app/web/commons/base/Globals.java @@ -59,10 +59,8 @@ public class Globals { private SysTaskService sysTaskService; @Inject private PropertiesProxy conf; - private static String productionAppDomain; public void init() { - productionAppDomain = conf.get("custom.app-domain"); initSysConfig(sysConfigService); initRoute(sysRouteService); initTask(sysTaskService); @@ -97,9 +95,6 @@ public class Globals { default -> Globals.MyConfig.put(sysConfig.getConfigKey(), sysConfig.getConfigValue()); } } - if (Strings.isNotBlank(productionAppDomain)) { - Globals.AppDomain = productionAppDomain; - } } public static void initRoute(SysRouteService sysRouteService) { diff --git a/src/main/resources/application-prd.yaml b/src/main/resources/application-prd.yaml index 83a8d71..b184cfc 100644 --- a/src/main/resources/application-prd.yaml +++ b/src/main/resources/application-prd.yaml @@ -39,7 +39,7 @@ sdk: server-login-url: https://authserver.zjnu.edu.cn/authserver/login qi-wx-server-login-url: https://authserver.zjnu.edu.cn/authserver/login client-host-url: https://lxy.zjnu.edu.cn - client-call-back-url: /sso/login + client-call-back-url: /platform/sso/login validation-type: cas minio: accessKey: minioadmin @@ -48,7 +48,6 @@ sdk: bucket: zjnu custom: - app-domain: https://lxy.zjnu.edu.cn spdb: bab7: url: http://localhost:8888/supplierOpenApi/pointOrder/queryOrderInfo diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html index 9c4746e..d53fa4a 100644 --- a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/write/index.html @@ -161,7 +161,7 @@ layout("/layouts/platform.html"){ -