修复失效问题

This commit is contained in:
mkm 2023-11-16 10:14:51 +08:00
parent 3217db4f75
commit 1156eec859

View File

@ -182,6 +182,7 @@ 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;
}