Pārlūkot izejas kodu

师傅端和客户端小程序参数配置

yanliming 1 mēnesi atpakaļ
vecāks
revīzija
df6188a283

+ 2 - 0
web/src/main/java/com/jpsoft/employment/config/WebMvcConfig.java

@@ -54,6 +54,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
                         "/v2/**",
                         "/mobileApi/**")
                 .excludePathPatterns("/wechat/**")
+				.excludePathPatterns("/wechatCustom/**")
+				.excludePathPatterns("/wechatMini/**")
 				.excludePathPatterns("/wechat/decryptData")
 				.excludePathPatterns("/mobile/technician/register")
 				.excludePathPatterns("/mobile/technician/wxLogin")

+ 2 - 1
web/src/main/java/com/jpsoft/employment/modules/wechat/controller/WxCustomController.java

@@ -15,13 +15,14 @@ import org.springframework.data.redis.core.ValueOperations;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
 import java.util.concurrent.TimeUnit;
 
 @Slf4j
 @RequestMapping("/wechatCustom")
-@Api(description = "小程序")
+@RestController
 public class WxCustomController {
     @Autowired
     private WxCustom wxCustom;

+ 2 - 1
web/src/main/java/com/jpsoft/employment/modules/wechat/controller/WxMiniController.java

@@ -14,13 +14,14 @@ import org.springframework.data.redis.core.ValueOperations;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
 import java.util.concurrent.TimeUnit;
 
 @Slf4j
 @RequestMapping("/wechatMini")
-@Api(description = "小程序")
+@RestController
 public class WxMiniController {
 
     @Autowired