From 5960a874859fa8ed223d71e0c285d38a666cbfeb Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 16 Nov 2023 11:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/store/order/StoreCart.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/common/model/store/order/StoreCart.php b/app/common/model/store/order/StoreCart.php index d1b79f7d..083e8244 100644 --- a/app/common/model/store/order/StoreCart.php +++ b/app/common/model/store/order/StoreCart.php @@ -182,7 +182,6 @@ class StoreCart extends BaseModel switch ($this->product_type) { case 0: //普通商品 - case 98://供应链商品 if ($this->product->product_type !== 0 || $this->product->is_show !== 1 || $this->productAttr->stock < $this->cart_num || $this->product->is_used !== 1) { return false; } @@ -239,6 +238,11 @@ class StoreCart extends BaseModel //库存不足 if($sku->stock < $this->cart_num || $sku->sku->stock < $this->cart_num) return false; break; + case 98: //供应链商品 + if ($this->product->product_type !== 98 || $this->product->is_show !== 1 || $this->productAttr->stock < $this->cart_num || $this->product->is_used !== 1) { + return false; + } + break; case 100: //扫码枪商品 if ($this->product->product_type !== 0 || $this->product->is_show !== 1 || $this->productAttr->stock < $this->cart_num || $this->product->is_used !== 1) { return false;