Commit a6bc6fd1 by qwmqiuwenmin

fix

parent 25602f59
...@@ -66,13 +66,13 @@ public class WebInterceptor extends HandlerInterceptorAdapter { ...@@ -66,13 +66,13 @@ public class WebInterceptor extends HandlerInterceptorAdapter {
if (null != ignoreLogin) { if (null != ignoreLogin) {
return true; return true;
} }
LoginVO loginUser = (LoginVO) AuthRequestUtil.getSessionUser(); //LoginVO loginUser = (LoginVO) AuthRequestUtil.getAppLoginUser(token);
if (loginUser == null) { // if (loginUser == null) {
this.errorResult(httpServletResponse, HaoBanErrCode.ERR_4); // this.errorResult(httpServletResponse, HaoBanErrCode.ERR_4);
logger.info("用户不存在!"); // logger.info("用户不存在!");
return false; // return false;
} // }
HandlerMethod method = null; HandlerMethod method = null;
if (o instanceof HandlerMethod) { if (o instanceof HandlerMethod) {
method = (HandlerMethod) (o); method = (HandlerMethod) (o);
...@@ -81,12 +81,12 @@ public class WebInterceptor extends HandlerInterceptorAdapter { ...@@ -81,12 +81,12 @@ public class WebInterceptor extends HandlerInterceptorAdapter {
return true; return true;
} }
MenuCheck methodAnnotation = method.getMethodAnnotation(MenuCheck.class); MenuCheck methodAnnotation = method.getMethodAnnotation(MenuCheck.class);
if (StringUtils.isNotBlank(loginUser.getWxEnterpriseId())) { // if (StringUtils.isNotBlank(loginUser.getWxEnterpriseId())) {
httpServletRequest.setAttribute("wxEnterpriseId", loginUser.getWxEnterpriseId()); // httpServletRequest.setAttribute("wxEnterpriseId", loginUser.getWxEnterpriseId());
} // }
if (loginUser.getStaffDTO() != null) { // if (loginUser.getStaffDTO() != null) {
httpServletRequest.setAttribute("staffDTO", loginUser.getStaffDTO()); // httpServletRequest.setAttribute("staffDTO", loginUser.getStaffDTO());
} // }
return true; 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