From bb93226aa612e10e83689b3d9aab8ac4090d0f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Fri, 10 Oct 2025 10:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/impl/IfsApiServiceImpl.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/gaotao/modules/api/service/impl/IfsApiServiceImpl.java b/src/main/java/com/gaotao/modules/api/service/impl/IfsApiServiceImpl.java index 3dbc63a..5993a3f 100644 --- a/src/main/java/com/gaotao/modules/api/service/impl/IfsApiServiceImpl.java +++ b/src/main/java/com/gaotao/modules/api/service/impl/IfsApiServiceImpl.java @@ -89,16 +89,16 @@ public class IfsApiServiceImpl implements IfsApiService { } private String getCurrentDomainUserID() { - if (ldapFlag) { - try { - SysUserEntity currentUser = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); - if (currentUser != null && StringUtils.isNotBlank(currentUser.getDomainAccount())) { - return currentUser.getDomainAccount(); - } - } catch (Exception e) { - // 如果获取当前用户失败,使用默认配置 - } - } + // if (ldapFlag) { + // try { + // SysUserEntity currentUser = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); + // if (currentUser != null && StringUtils.isNotBlank(currentUser.getDomainAccount())) { + // return currentUser.getDomainAccount(); + // } + // } catch (Exception e) { + // // 如果获取当前用户失败,使用默认配置 + // } + // } return domainUserID; }