diff --git a/app/Endpoint/Api/Http/Controllers/Order/OrderPreController.php b/app/Endpoint/Api/Http/Controllers/Order/OrderPreController.php index 9bce38ed..f15ed900 100644 --- a/app/Endpoint/Api/Http/Controllers/Order/OrderPreController.php +++ b/app/Endpoint/Api/Http/Controllers/Order/OrderPreController.php @@ -52,7 +52,7 @@ class OrderPreController extends Controller } // 验证商品库存(店铺库存) - if ($store_product->pivot->amount < $quantity) { + if ($store_product->pivot->amount < $send) { throw new BizException('店铺商品: ' . $store_product->name . ' 库存不足'); }