供应链商品支持线下扫码支付

This commit is contained in:
luofei 2024-03-07 14:14:31 +08:00
parent 75cf794b46
commit 2d8eb9594d

View File

@ -239,7 +239,7 @@ 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) {
if (($this->product->product_type !== 98 || $this->product->is_show !== 1 || $this->productAttr->stock < $this->cart_num || $this->product->is_used !== 1) && !$this->product->isPickupCard()) {
return false;
}
break;