Commit bc17d688 by guojuxing

去掉catch 权限拦截错误

parent daf41892
......@@ -45,7 +45,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception {
try {
String token = UserContext.getContext().getToken();
log.info("权限拦截token:{}", token);
RpcContext.getContext().getAttachments().put(Constants.USER_TOKEN, token);
......@@ -171,10 +170,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
}
return true;
} catch (Exception e) {
log.warn("权限拦截错误:{}", e.getMessage(), e);
throw new CommonException(ErrorCode.SYSTEM_ERROR.getErrorCode(), e.getMessage());
}
}
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