Commit 5c77209a by guojuxing

权限拦截错误

parent a5725c0a
...@@ -45,6 +45,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { ...@@ -45,6 +45,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
@Override @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception {
try {
String token = UserContext.getContext().getToken(); String token = UserContext.getContext().getToken();
log.info("权限拦截token:{}", token); log.info("权限拦截token:{}", token);
RpcContext.getContext().getAttachments().put(Constants.USER_TOKEN, token); RpcContext.getContext().getAttachments().put(Constants.USER_TOKEN, token);
...@@ -170,6 +171,9 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { ...@@ -170,6 +171,9 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
} }
return true; return true;
} catch (Exception e) {
log.warn("权限拦截错误:{}", e.getMessage(), e);
}
} }
private static Integer getOperationModule(Integer menuId, Map<String, MenuInfo> tempMap) { private static Integer getOperationModule(Integer menuId, Map<String, MenuInfo> tempMap) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment