diff --git a/controller/mall.go b/controller/mall.go index a99ee64..fb095cd 100644 --- a/controller/mall.go +++ b/controller/mall.go @@ -270,7 +270,7 @@ func MallOrderCreate(c *gin.Context) { totalRm := (combo.PriceRm*req.Quantity*discount + 5) / model.Rmb couponDiscount := userCoupon.Value - if totalRm <= couponDiscount { + if totalRm < couponDiscount { log.Error().Msgf("coupon value[%d] is err, code is:", couponDiscount, req.CouponCode) RespJson(c, status.InternalServerError, nil) return