diff --git a/service/repositories/shopping_cart.go b/service/repositories/shopping_cart.go index 6c22d7d4..52b38248 100644 --- a/service/repositories/shopping_cart.go +++ b/service/repositories/shopping_cart.go @@ -138,7 +138,7 @@ func (d *defaultShoppingCart) CaculateStepPrice(purchaseQuantity int64, stepPric //购买数量>起点 if purchaseQuantity > v.StartQuantity { //最后一个 || 小于等于终点 - if k == l-1 || purchaseQuantity <= v.EndQuantity { + if k == l-1 || purchaseQuantity < v.EndQuantity { itemPrice = v.Price + fittingPrice return itemPrice * purchaseQuantity, itemPrice, nil }