feat(order-status): 新增PATCH接口支持自动统计和退款状态开关直接编辑;CORS允许PATCH方法

This commit is contained in:
小蟑螂
2026-04-25 17:31:47 +08:00
parent efa6341dd2
commit 90d0df6fc6
7 changed files with 140 additions and 13 deletions
@@ -33,7 +33,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
.maxAge(3600);