diff --git a/backend/modules/shop/logic/delivery/DeliveryManager.php b/backend/modules/shop/logic/delivery/DeliveryManager.php index cbb4ff9..7208b46 100644 --- a/backend/modules/shop/logic/delivery/DeliveryManager.php +++ b/backend/modules/shop/logic/delivery/DeliveryManager.php @@ -69,7 +69,7 @@ class DeliveryManager { $status = Order::STATUS_SHIPMENT_ALL; foreach ($deliveryGoods as $id => $goodsCount) { - if ($goodsCount <= 0) { + if ($goodsCount < 0) { throw new Exception('操作异常,发货数量不能小于0'); } elseif ($goodsCount == 0) { continue;