This commit is contained in:
shengchanzhe 2023-12-15 20:09:24 +08:00
parent 51bebab4fd
commit d596cac85a

View File

@ -116,9 +116,9 @@ class StoreCartRepository extends BaseRepository
* @param $uid
* @author Qinii
*/
public function getCartByProductSku($sku, $uid, $product_type = 0)
public function getCartByProductSku($sku, $uid, $product_type = 0,$source=0)
{
$where = ['is_del' => 0, 'is_fail' => 0, 'is_new' => 0, 'is_pay' => 0, 'uid' => $uid, 'product_type' => $product_type, 'product_attr_unique' => $sku];
$where = ['is_del' => 0, 'is_fail' => 0, 'is_new' => 0, 'is_pay' => 0, 'uid' => $uid, 'product_type' => $product_type, 'product_attr_unique' => $sku,'source'=>$source];
return ($this->dao->getWhere($where));
}