@ -69,6 +69,11 @@ class DeliveryManager
{
$status = Order::STATUS_SHIPMENT_ALL;
foreach ($deliveryGoods as $id => $goodsCount) {
if ($goodsCount <= 0) {
throw new Exception('操作异常,发货数量不能小于0');
} elseif ($goodsCount == 0) {
continue;
}
$orderGoods = OrderGoods::findOne($id);
/*如果是发货数量不是全部,订单状态为部分发货*/