Commit 6d7b903f authored by zhouxudong's avatar zhouxudong

放开权限

parent c11790df
......@@ -18,7 +18,7 @@ public class CurrentUserInterceptor implements AsyncHandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
/*// 从header中获取权限请求头
// 从header中获取权限请求头
String authToken = request.getHeader(Constants.TOKEN_HEADER);
if (StringUtils.isBlank(authToken)) {
throw new AuthException("未授权,请重新登录");
......@@ -27,7 +27,7 @@ public class CurrentUserInterceptor implements AsyncHandlerInterceptor {
JwtInfo jwtUser = JwtTokenUtil.getJwtUser(token);
// 根据token信息,生成当前登录用户信息的设置,存放容器threadlocal
BaseContextHandler.setCurrentUserInfo(jwtUser);*/
BaseContextHandler.setCurrentUserInfo(jwtUser);
return true;
}
......
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