Browse Source

fix: 保存发货商品信息

wechat_public_accounts
travis 5 years ago
parent
commit
a952452834
  1. 2
      backend/modules/shop/logic/delivery/DeliveryManager.php

2
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;

Loading…
Cancel
Save