From 027bc7b33dfa0d5971bd13d2d90b1fc0654a1dd9 Mon Sep 17 00:00:00 2001 From: songchuang <192749120@qq.com> Date: Sat, 29 Mar 2025 03:23:57 +0800 Subject: [PATCH] =?UTF-8?q?fmt=E6=B3=A8=E9=87=8A=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/pay.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/service/bundle/pay.go b/pkg/service/bundle/pay.go index c8f3b3c..321f737 100644 --- a/pkg/service/bundle/pay.go +++ b/pkg/service/bundle/pay.go @@ -50,16 +50,12 @@ func CreateStripeCheckoutSession(c *gin.Context) { return } - fmt.Println("1111111111111111111111") - //金额校验 if detail.OrderRecord.TotalAmount*100 != float32(req.ProductAllPrice) { service.Error(c, errors.New(common.InvalidOrderAmount)) return } - fmt.Println("22222222222222222222222") - // 如果 当前订单 是 已签未支付 且 存在 checkoutSessionId 需要 查询 支付结果 if detail.OrderRecord.Status == bundleModel.OrderSigned && detail.OrderRecord.CheckoutSessionId != "" && detail.OrderRecord.PayTime == "" { // 查询支付结果 @@ -95,8 +91,6 @@ func CreateStripeCheckoutSession(c *gin.Context) { } } - fmt.Println("333333333333333333333") - //调用微服务获取支付地址 result, err := service.OrderProvider.CreateStripeCheckoutSession(context.Background(), &req) if err != nil { @@ -104,8 +98,6 @@ func CreateStripeCheckoutSession(c *gin.Context) { return } - fmt.Println("444444444444444444444") - //更新订单状态 _, updateOrderRecordErr := service.BundleProvider.UpdateOrderRecord(context.Background(), &bundle.OrderRecord{ Uuid: detail.OrderRecord.Uuid,