From 766f117b4af4583a29757b4999f3b7dfab1d1283 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 29 Oct 2019 21:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/common/model/Carts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyhproject/common/model/Carts.php b/hyhproject/common/model/Carts.php index 17e6780..9b76c1c 100755 --- a/hyhproject/common/model/Carts.php +++ b/hyhproject/common/model/Carts.php @@ -49,7 +49,7 @@ class Carts extends Base{ $data['cartNum'] = $cartNum; $rs = $this->save($data); }else{ - $rs = $this->where(['userId'=>$userId,'goodsId'=>$goodsId,'goodsSpecId'=>$goodsSpecId])->setInc('cartNum',$cartNum); + $rs = $this->where(['userId'=>$userId,'goodsId'=>$goodsId,'goodsSpecId'=>$goodsSpecId, 'goodsType'=>$goodsType])->setInc('cartNum',$cartNum); } if(false !==$rs){ if($type==1){