mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
校验token
This commit is contained in:
@@ -130,7 +130,9 @@ public class RouteServiceImpl implements RouteService {
|
|||||||
protected Object doAfterRoute(ApiRequestContext apiRequestContext, ApiInfoDTO apiInfoDTO, Object result) {
|
protected Object doAfterRoute(ApiRequestContext apiRequestContext, ApiInfoDTO apiInfoDTO, Object result) {
|
||||||
Object ret = result;
|
Object ret = result;
|
||||||
for (RouteInterceptor routeInterceptor : routeInterceptors) {
|
for (RouteInterceptor routeInterceptor : routeInterceptors) {
|
||||||
ret = routeInterceptor.afterRoute(apiRequestContext, apiInfoDTO, ret);
|
if (routeInterceptor.match(apiRequestContext, apiInfoDTO)) {
|
||||||
|
ret = routeInterceptor.afterRoute(apiRequestContext, apiInfoDTO, ret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user