Commit 34353c97 authored by liuyuzhen's avatar liuyuzhen

购物车修改

parent a18292d2
......@@ -386,7 +386,7 @@ class CartServiceModel extends \Business\AbstractModel{
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyCartGoodsNum);
}
$cartDao = \DAO\Cart\CartModel::getInstance(\Our\DbNameConst::masterDBConnectName);
$existCart = $cartDao->find(array('goods_id'=>$data['goodsId'],'buyer_id'=>$memberId,array('cart_id'=>array('neq ',$data['cartId']))));
$existCart = $cartDao->find(array('goods_id'=>$data['goodsId'],'buyer_id'=>$memberId,array('cart_id'=>array('neq',$data['cartId']))));
if($existCart){
return array('existCartFlag'=>\Our\ApiConst::one);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment