Browse Source

同步组合支付

gorden 6 months ago
parent
commit
17b713b055
1 changed files with 2 additions and 2 deletions
  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');
             }
         }
     }