Parcourir la source

同步组合支付

gorden il y a 6 mois
Parent
commit
17b713b055
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/admin/service/order/OrderService.php

+ 2 - 2
app/admin/service/order/OrderService.php

@@ -350,13 +350,13 @@ class OrderService
                     $skuStorageJson['storage'] = $skuStorageJson['storage'] - $goods['nbr'];
                 }
                 if (!isset($skuStorageJson['storage']) || (!empty($skuStorageJson['storage']) && $skuStorageJson['storage'] < 0)) {
-                    throw new BusinessException('库存不足');
+                    throw new BusinessException('库存不足3');
                 }
             }
             $goodsRunning = GoodsRunning::where('join_running_goods_id', $goods['goods_id'])->first();
             $goodsRunning->goods_running_storage = $goodsRunning->goods_running_storage - $goods['nbr'];
             if ($goodsRunning->goods_running_storage < 0) {
-                throw new BusinessException('库存不足');
+                throw new BusinessException('库存不足4');
             }
         }
     }