فهرست منبع

fix(payment): add payment endpoints to JWT exclude list

Add /api/payment/wechat/* endpoints to JwtInterceptor exclude list so static product page can call payment APIs without authentication.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Xiaogang Liao 1 ماه پیش
والد
کامیت
125b31b2c1
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      cfc-backend/src/main/java/com/etotem/cfc/config/WebConfig.java

+ 6 - 1
cfc-backend/src/main/java/com/etotem/cfc/config/WebConfig.java

@@ -82,7 +82,12 @@ public class WebConfig implements WebMvcConfigurer {
                 "/api/activity/list",
                 "/api/activity/detail",
                 "/api/ai/context",
-                "/api/config/public/**"
+                "/api/config/public/**",
+                "/api/payment/wechat/native",
+                "/api/payment/wechat/create",
+                "/api/payment/wechat/status",
+                "/api/payment/wechat/oauth2-url",
+                "/api/payment/wechat/oauth2-callback"
         );
 
         registry.addInterceptor(operationLogInterceptor)