Commit b9e900da by 罗承锋

优化垂直鉴权

parent 7b092ddf
...@@ -53,7 +53,7 @@ public class AuthIntercept extends HandlerInterceptorAdapter { ...@@ -53,7 +53,7 @@ public class AuthIntercept extends HandlerInterceptorAdapter {
return false; return false;
} }
String security = request.getHeader("security"); String security = request.getHeader("security").trim();
if (StringUtils.isBlank(security)) { if (StringUtils.isBlank(security)) {
log.error("校验权限失败!"); log.error("校验权限失败!");
...@@ -65,7 +65,6 @@ public class AuthIntercept extends HandlerInterceptorAdapter { ...@@ -65,7 +65,6 @@ public class AuthIntercept extends HandlerInterceptorAdapter {
log.error("无权限"); log.error("无权限");
return false; return false;
} }
ResponseData<String> stringResponseData = LoginUtils.pwdDecrypt(security); ResponseData<String> stringResponseData = LoginUtils.pwdDecrypt(security);
if (!stringResponseData.isSuccess()) { if (!stringResponseData.isSuccess()) {
log.error("鉴权失败"); log.error("鉴权失败");
......
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