Jelajahi Sumber

【CHG】放开部分接口过滤

zhaomn 2 tahun lalu
induk
melakukan
d1778b392e

+ 1 - 1
railway-admin/src/main/java/com/railway/web/controller/common/CaptchaController.java

@@ -104,7 +104,7 @@ public class CaptchaController extends BaseController {
   /**
    * 生成验证码
    */
-  @ApiOperation(value = "验证码生成", notes = "验证码生成", response = ModelAndView.class)
+  @ApiOperation(value = "yzm", notes = "yzm", response = ModelAndView.class)
   @ApiImplicitParam(name = "type", value = "math 或 char", paramType = "query", dataType = "string")
   @GetMapping("/yZm")
   public AjaxResult getYzm(String type) {

+ 1 - 0
railway-admin/src/main/java/com/railway/web/core/config/SwaggerConfig.java

@@ -123,6 +123,7 @@ public class SwaggerConfig {
         "/monitor/logininfor/.*",
         "/monitor/operlog/.*",
         "/captchaImage",
+        "/yZm",
         "/common/.*",
         "/app/upgrade/.*",
         "/business/push/bus/push/msg/.*",

+ 1 - 1
railway-framework/src/main/java/com/railway/framework/config/ResourcesConfig.java

@@ -59,7 +59,7 @@ public class ResourcesConfig implements WebMvcConfigurer {
         // 不需要拦截的路由,swagger3
         .excludePathPatterns("/swagger-resources/**","/swagger-ui/**", "/v3/**", "/error")
         // 不需要拦截的路由
-        .excludePathPatterns("/profile/**","/captchaImage", "/common/**", "/monitor/**")
+        .excludePathPatterns("/profile/**", "/captchaImage", "/yZm", "/common/**", "/monitor/**")
         .excludePathPatterns("/chart/**")
     ;
   }