From 24f74b4fd5d2906d61f112a35ee560d5f2de0302 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Wed, 24 Jan 2024 18:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B4=BB=E5=8A=A8=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=BA=93=E5=AD=98=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/order/StoreOrderCreateRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index f3d6fa6c..a1e11193 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -116,7 +116,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository } } $oldProductId = $cart->product->old_product_id ?? 0; - if (in_array($oldProductId, [1, 2, 3])) { + if (in_array($oldProductId, [172289, 11968, 11933, 11827])) { $oldProductStock = Db::name('store_product')->where('product_id', $oldProductId)->value('stock'); if ($oldProductStock < $cart['cart_num']) { throw new ValidateException('商品库存不足');