From 3e484d0e3130e0c7954528d9b0e4a8b6f95a1847 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 25 Jan 2024 09:44:53 +0800 Subject: [PATCH 1/2] by Robin at 20240125; apipaycallback not token auth --- app/mix/controller/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 617d1a8c..98a824cf 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -217,7 +217,7 @@ func Init(r *gin.Engine) { opProductGroup.POST("list", middleware.JSONParamValidator(productproto.OpListReq{}), middleware.JwtAuthenticator(), OpGetProductList) extVasPayGroup := r.Group("/ext/vas") - extVasPayGroup.POST("alipay_callback", middleware.JwtAuthenticator(), AlipayCallback) + extVasPayGroup.POST("alipay_callback", AlipayCallback) opVasPayGroup := r.Group("/op/vas", PrepareOp()) opVasPayGroup.POST("create_order", middleware.JSONParamValidator(vasproto.OpCreateOrderReq{}), middleware.JwtAuthenticator(), OpCreateOrder) From de3619efe342ec9401281bcf14be0b3c5b21dc80 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 25 Jan 2024 09:50:08 +0800 Subject: [PATCH 2/2] by Robin at 20240125; get_coins_product_list not token auth --- app/mix/controller/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 98a824cf..afcbcf2a 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -57,7 +57,7 @@ func Init(r *gin.Engine) { // 支付相关 vasPayGroup := r.Group("/api/vas", PrepareToC()) - vasPayGroup.POST("get_coins_product_list", middleware.JSONParamValidator(vasproto.GetCoinsProductListReq{}), middleware.JwtAuthenticator(), GetCoinsProductList) + vasPayGroup.POST("get_coins_product_list", middleware.JSONParamValidator(vasproto.GetCoinsProductListReq{}), GetCoinsProductList) vasPayGroup.POST("create_order", middleware.JSONParamValidator(vasproto.CreateOrderReq{}), middleware.JwtAuthenticator(), CreateOrder) vasPayGroup.POST("one_step_unlock", middleware.JSONParamValidator(vasproto.OneStepUnlockContactReq{}), middleware.JwtAuthenticator(), OneStepUnlock) vasPayGroup.POST("consumer_fill_contact", middleware.JSONParamValidator(vasproto.ConsumerFillContactReq{}), middleware.JwtAuthenticator(), ConsumerFillContact)