|
|
@@ -24,6 +24,7 @@ public class CustomFilter implements Filter {
|
|
24
|
24
|
public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
|
|
25
|
25
|
throws IOException, ServletException {
|
|
26
|
26
|
HttpServletRequest request = (HttpServletRequest) arg0;
|
|
|
27
|
+ String ss = request.getServletPath();
|
|
27
|
28
|
HttpSession session = request.getSession();
|
|
28
|
29
|
String orgId = "";
|
|
29
|
30
|
if (session != null){
|
|
|
@@ -31,8 +32,11 @@ public class CustomFilter implements Filter {
|
|
31
|
32
|
}
|
|
32
|
33
|
if (!orgId.isEmpty()) {
|
|
33
|
34
|
DataPolicyEngine.set(orgId);
|
|
|
35
|
+ arg2.doFilter(arg0, arg1);//放行,通过了当前过滤器,递交给下一个filter进行过滤
|
|
|
36
|
+ }else if ("/userInfo/getLoginInfo".equals(request.getServletPath())||"/userInfo/getCode".equals(request.getServletPath())
|
|
|
37
|
+ ||"/userInfo/login".equals(request.getServletPath())) {
|
|
|
38
|
+ arg2.doFilter(arg0, arg1);//放行,通过了当前过滤器,递交给下一个filter进行过滤
|
|
34
|
39
|
}
|
|
35
|
|
- arg2.doFilter(arg0, arg1);
|
|
36
|
40
|
DataPolicyEngine.remove();
|
|
37
|
41
|
}
|
|
38
|
42
|
|