供应链商品支持线下扫码支付
This commit is contained in:
parent
75cf794b46
commit
2d8eb9594d
@ -239,7 +239,7 @@ class StoreCart extends BaseModel
|
|||||||
if($sku->stock < $this->cart_num || $sku->sku->stock < $this->cart_num) return false;
|
if($sku->stock < $this->cart_num || $sku->sku->stock < $this->cart_num) return false;
|
||||||
break;
|
break;
|
||||||
case 98: //供应链商品
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user