Commit 37a5aba8 authored by luyuan's avatar luyuan

兼容h5登录带Bearer

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