提交 72330f90 编写于 作者: lengyu's avatar lengyu

fixed

上级 6332f900
...@@ -84,11 +84,12 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter { ...@@ -84,11 +84,12 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter {
if(StringUtils.isEmpty(requestOrgId)||StringUtils.isEmpty(requestSystemId)){ if(StringUtils.isEmpty(requestOrgId)||StringUtils.isEmpty(requestSystemId)){
throw new RuntimeException("系统标识或组织标识不能为空"); throw new RuntimeException("系统标识或组织标识不能为空");
} }
UserDetails userDetails;
final String requestProxyOrgId = request.getHeader("srfdynaorgid"); final String requestProxyOrgId = request.getHeader("srfdynaorgid");
if(!(StringUtils.isEmpty(requestProxyOrgId)||"undefined".equals(requestProxyOrgId))){ if(!(StringUtils.isEmpty(requestProxyOrgId)||"undefined".equals(requestProxyOrgId))){
UserDetails userDetails = this.userDetailsService.loadUserByUsername(requestSystemId,String.format("%1$s|%2$s",requestOrgId,requestProxyOrgId),username); userDetails = this.userDetailsService.loadUserByUsername(requestSystemId,String.format("%1$s|%2$s",requestOrgId,requestProxyOrgId),username);
}else{ }else{
UserDetails userDetails = this.userDetailsService.loadUserByUsername(requestSystemId,requestOrgId,username); userDetails = this.userDetailsService.loadUserByUsername(requestSystemId,requestOrgId,username);
} }
<#else> <#else>
UserDetails userDetails = this.userDetailsService.loadUserByUsername(username); UserDetails userDetails = this.userDetailsService.loadUserByUsername(username);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册