From a952452834bf651eb02633f07d40ca4f5d21addf Mon Sep 17 00:00:00 2001 From: travis <310243791@qq.com> Date: Wed, 11 Dec 2019 09:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E5=AD=98=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/shop/logic/delivery/DeliveryManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;