From f4ac8a245868092841bc7c29bb949e4c4a81ba87 Mon Sep 17 00:00:00 2001 From: jhc Date: Fri, 28 Mar 2025 22:05:34 +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/service/bundle/pay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/bundle/pay.go b/pkg/service/bundle/pay.go index 4987043..0b73956 100644 --- a/pkg/service/bundle/pay.go +++ b/pkg/service/bundle/pay.go @@ -53,7 +53,7 @@ func CreateStripeCheckoutSession(c *gin.Context) { fmt.Println("1111111111111111111111") //金额校验 - if detail.OrderRecord.TotalAmount != float32(req.ProductAllPrice) { + if detail.OrderRecord.TotalAmount != float32(req.ProductAllPrice)*100 { service.Error(c, errors.New(common.InvalidOrderAmount)) return }