Commit 9e614537 authored by 李腾威's avatar 李腾威

导出权限修改

parent 55b57291
...@@ -86,16 +86,16 @@ public class ControllerAop { ...@@ -86,16 +86,16 @@ public class ControllerAop {
return; return;
} }
} }
//TODO tyboot 框架拦截器已缓存数据
String token = RequestContext.getToken();
// 不需要校验token的接口直接返回 // 不需要校验token的接口直接返回
if (joinPoint.getSignature() instanceof MethodSignature) { if (joinPoint.getSignature() instanceof MethodSignature) {
if (!((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(TycloudOperation.class).needAuth() && !request.getParameterMap().containsKey("token")) { if (!((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(TycloudOperation.class).needAuth() && !request.getParameterMap().containsKey("token") && ValidationUtil.isEmpty(token)) {
return; return;
} }
} }
//TODO tyboot 框架拦截器已缓存数据
String token = RequestContext.getToken();
// 平台studio配置的下载接口token从url里取 // 平台studio配置的下载接口token从url里取
if (ValidationUtil.isEmpty(token)) { if (ValidationUtil.isEmpty(token)) {
fillRequestContext(request); fillRequestContext(request);
......
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