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('商品库存不足');