优化HttpRequestHandler处理逻辑

This commit is contained in:
aoshiguchen
2022-10-12 18:18:54 +08:00
parent a24d59bf72
commit 1e2b3b3452
2 changed files with 8 additions and 10 deletions
@@ -46,11 +46,6 @@ 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));