From d9f1787d623a28c96f4715dd9fa73a3da32570ac Mon Sep 17 00:00:00 2001 From: jhc Date: Sat, 22 Feb 2025 17:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/router/bundleOrder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/router/bundleOrder.go b/pkg/router/bundleOrder.go index 4e9ddd0..2a44232 100644 --- a/pkg/router/bundleOrder.go +++ b/pkg/router/bundleOrder.go @@ -1,6 +1,8 @@ package router import ( + "fonchain-fiee/pkg/middleware" + "fonchain-fiee/pkg/service" "fonchain-fiee/pkg/service/bundle" "github.com/gin-gonic/gin" ) @@ -10,6 +12,7 @@ func BundleOrderRouter(r *gin.RouterGroup) { r.POST("/stripe-pay/callback", bundle.StripeCheckoutSessionWebhook) bundleOrderRoute := r.Group("bundle-order") + bundleOrderRoute.Use(middleware.CheckLogin(service.AccountProvider)) // 套餐 {