|
|
@ -89,16 +89,16 @@ public class IfsApiServiceImpl implements IfsApiService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private String getCurrentDomainUserID() { |
|
|
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; |
|
|
return domainUserID; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|