临时解决静态页面被拦截的问题

This commit is contained in:
aoshiguchen
2022-10-12 17:25:41 +08:00
parent b0e594a82b
commit a24d59bf72
2 changed files with 7 additions and 2 deletions
@@ -46,6 +46,11 @@ public class BaseAuthInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpRequestWrapper requestParser, HttpResponseWrapper responseWrapper, String route, Method targetMethod) throws Exception {
// TODO 临时解决静态页面被拦截的问题
if (null == targetMethod) {
return true;
}
SystemContext systemContext = new SystemContext();
SystemContextHolder.set(systemContext);
systemContext.setIp(HttpUtil.getIP(HttpContextHolder.getChannelHandlerContext(), requestParser));