|
@ -69,7 +69,7 @@ class DeliveryManager |
|
|
{ |
|
|
{ |
|
|
$status = Order::STATUS_SHIPMENT_ALL; |
|
|
$status = Order::STATUS_SHIPMENT_ALL; |
|
|
foreach ($deliveryGoods as $id => $goodsCount) { |
|
|
foreach ($deliveryGoods as $id => $goodsCount) { |
|
|
if ($goodsCount <= 0) { |
|
|
|
|
|
|
|
|
if ($goodsCount < 0) { |
|
|
throw new Exception('操作异常,发货数量不能小于0'); |
|
|
throw new Exception('操作异常,发货数量不能小于0'); |
|
|
} elseif ($goodsCount == 0) { |
|
|
} elseif ($goodsCount == 0) { |
|
|
continue; |
|
|
continue; |
|
|