ソースを参照

添加兔灵erp物流同步回调接口

cgp 1 週間 前
コミット
2487a6173b

+ 2 - 2
fs-admin/src/main/java/com/fs/his/controller/JstOrderSyncController.java

@@ -15,7 +15,7 @@ import java.time.Instant;
  */
 @Slf4j
 @RestController
-@RequestMapping("/v1/mp/sync/order/jst")
+@RequestMapping("/sync/order/jst")
 public class JstOrderSyncController {
 
 
@@ -31,7 +31,7 @@ public class JstOrderSyncController {
      * 接收聚水潭物流同步推送
      * URL: POST /open/callback?partnerid=erp&method=logistics.upload&ts=xxx&sign=xxx
      */
-    @PostMapping("/callback")
+    @PostMapping("/open/callback")
     public ResponseEntity<PushResponse> handleLogisticsPush(
             @RequestParam String partnerid,
             @RequestParam String method,

+ 1 - 1
fs-framework/src/main/java/com/fs/framework/config/SecurityConfig.java

@@ -97,7 +97,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 过滤请求
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
-                .antMatchers("/login", "/register", "/captchaImage","/v1/mp/sync/order/jst/callback").anonymous()
+                .antMatchers("/login", "/register", "/captchaImage","/sync/order/jst/open/callback").anonymous()
                 .antMatchers("/app/common/test").anonymous()
                 .antMatchers("/ad/adDyApi/authorized").anonymous()
                 .antMatchers(