From e08b5a447fee1bc5968443c703e0026b5bf615f2 Mon Sep 17 00:00:00 2001 From: fengsilin Date: Mon, 13 Apr 2026 17:13:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E7=A7=BB=E9=99=A4=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E5=88=9B=E5=BB=BA=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=20CriticalRateLimit=20=E9=99=90?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免用户扫码支付时因限流导致 429 错误。 Co-Authored-By: Claude Opus 4.6 --- router/api-router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/api-router.go b/router/api-router.go index 7008c55..0bab2e1 100644 --- a/router/api-router.go +++ b/router/api-router.go @@ -91,7 +91,7 @@ func SetApiRouter(router *gin.Engine) { selfRoute.POST("/stripe/amount", controller.RequestStripeAmount) selfRoute.POST("/creem/pay", middleware.CriticalRateLimit(), controller.RequestCreemPay) selfRoute.POST("/wechat/pay/amount", controller.RequestWechatPayAmount) - selfRoute.POST("/wechat/pay", middleware.CriticalRateLimit(), controller.RequestWechatPay) + selfRoute.POST("/wechat/pay", controller.RequestWechatPay) selfRoute.GET("/wechat/pay/status", controller.WechatPayStatus) selfRoute.POST("/aff_transfer", controller.TransferAffQuota) selfRoute.PUT("/setting", controller.UpdateUserSetting)