From 9d156f43513b984f8d6549e30ab21ebe97f32e2c Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 18 May 2022 17:13:10 +0800 Subject: [PATCH] 1 --- app/Endpoint/Api/Http/Controllers/Order/OrderPreController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . ' 库存不足'); }