Browse Source

fix:调整拦截器顺序

master
pref_mail@163.com 8 months ago
parent
commit
f26a78c32c
  1. 6
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
  2. 6
      blade-service/logpm-factory/src/main/java/com/logpm/factory/config/InterceptorAdapterConfig.java

6
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java

@ -654,12 +654,6 @@ public class AftersalesWorkOrderController extends BladeController {
if(ObjectUtils.isNull( aftersalesWorkOrder.getOrderCode()) ){ if(ObjectUtils.isNull( aftersalesWorkOrder.getOrderCode()) ){
throw new ServiceException("订单自编号未填!"); throw new ServiceException("订单自编号未填!");
} }
// if(ObjectUtils.isNull( aftersalesWorkOrder.getFirst()) ){
// throw new ServiceException("一级品类未填!");
// }
// if(ObjectUtils.isNull( aftersalesWorkOrder.getSecondary()) ){
// throw new ServiceException("二级品类未填!");
// }
} }
try { try {
aftersalesWorkOrder.setInitiationIdentification("PC"); aftersalesWorkOrder.setInitiationIdentification("PC");

6
blade-service/logpm-factory/src/main/java/com/logpm/factory/config/InterceptorAdapterConfig.java

@ -33,12 +33,12 @@ public class InterceptorAdapterConfig implements WebMvcConfigurer {
excludePathPatterns("/factory/auth/token"). excludePathPatterns("/factory/auth/token").
excludePathPatterns("/factory/oupai/**"). excludePathPatterns("/factory/oupai/**").
excludePathPatterns("/factory/zb/**") excludePathPatterns("/factory/zb/**")
.excludePathPatterns("/factory/common/**").order(1); .excludePathPatterns("/factory/common/**").order(2);
InterceptorRegistration registryZbFactory = interceptorRegistry.addInterceptor(new ZbFactoryAccountsInterceptor(zbFactoryProperties)); InterceptorRegistration registryZbFactory = interceptorRegistry.addInterceptor(new ZbFactoryAccountsInterceptor(zbFactoryProperties));
registryZbFactory.addPathPatterns("/factory/zb/**").order(2); registryZbFactory.addPathPatterns("/factory/zb/**").order(3);
registry=interceptorRegistry.addInterceptor(new LocalServerLoginAccountsInterceptor(redis,environment)).addPathPatterns("/**").order(3); registry=interceptorRegistry.addInterceptor(new LocalServerLoginAccountsInterceptor(redis,environment)).addPathPatterns("/**").order(1);
} }
} }

Loading…
Cancel
Save