Commit a6bc6fd1 by qwmqiuwenmin

fix

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