修复问题
This commit is contained in:
parent
e842872027
commit
5960a87485
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user