fix: 去掉单独购买增值服务的0远金额限制
This commit is contained in:
parent
6eb8e2cef8
commit
7c6edab53d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user