diff --git a/pkg/service/bundle/pay.go b/pkg/service/bundle/pay.go index 857114d..d3b72be 100644 --- a/pkg/service/bundle/pay.go +++ b/pkg/service/bundle/pay.go @@ -307,11 +307,6 @@ func CreateAntomPay(c *gin.Context) { temp := int64(math.Round(float64(info.Amount * 100))) orderAmountInCents += temp } - if orderAmountInCents == 0 { - fmt.Println("子套餐金额加起来是0,orderAmountInCents:", orderAmountInCents) - service.Error(c, errors.New(common.InvalidOrderAmount)) - return - } fmt.Println("orderAmountInCents :", orderAmountInCents) fmt.Println("req.ProductAllPrice :", req.ProductAllPrice)