| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | protected boolean shouldNotFilter(HttpServletRequest request) { |
| | | String uri = request.getRequestURI(); |
| | | return uri.startsWith("/base/dougong/") || uri.startsWith("/api/base/dougong/") |
| | | || "/base/dougong".equals(uri) || "/api/base/dougong".equals(uri); |
| | | } |
| | | |
| | | /** 根据 Token 端类型读取对应用户表,任何端都不会回退查询其他用户表。 */ |
| | | private AppUserPrincipal loadPrincipal(TokenPayload payload, String requestUri) { |
| | | if (payload.getClientType() == ClientType.ADMIN) { |
| | |
| | | private boolean allowsDisabledGuide(String requestUri) { |
| | | return requestUri.startsWith("/api/guide/workbench") |
| | | || requestUri.startsWith("/api/guide/notifications") |
| | | || requestUri.startsWith("/api/guide/push-device") |
| | | || requestUri.equals("/api/guide/auth/logout"); |
| | | } |
| | | |