Переглянути джерело

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

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat/alipay-payment
fengsilin 3 тижднів тому
джерело
коміт
e08b5a447f
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      router/api-router.go

+ 1
- 1
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)


Завантаження…
Відмінити
Зберегти