Bläddra i källkod

fix(router): 移除微信支付创建订单接口的 CriticalRateLimit 限流

避免用户扫码支付时因限流导致 429 错误。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat/alipay-payment
fengsilin 3 veckor sedan
förälder
incheckning
e08b5a447f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      router/api-router.go

+ 1
- 1
router/api-router.go Visa fil

@@ -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)


Laddar…
Avbryt
Spara