Commit 37a5aba8 authored by luyuan's avatar luyuan

兼容h5登录带Bearer

parent 64ca7ac3
...@@ -204,8 +204,13 @@ public class PageProcessAspect { ...@@ -204,8 +204,13 @@ public class PageProcessAspect {
String authorization = request.getHeader("Authorization"); String authorization = request.getHeader("Authorization");
if (StringUtil.isEmpty(token) && !StringUtil.isEmpty(authorization)) { if (StringUtil.isEmpty(token) && !StringUtil.isEmpty(authorization)) {
try {
token = authorization.substring("Bearer ".length()); token = authorization.substring("Bearer ".length());
} }
catch (Exception e){
e.printStackTrace();
}
}
return token; return token;
} }
......
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