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;