更新判断
This commit is contained in:
parent
97f6f141f6
commit
51bebab4fd
@ -1958,7 +1958,7 @@ class ProductRepository extends BaseRepository
|
||||
* @author Qinii
|
||||
* @day 5/26/21
|
||||
*/
|
||||
public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0)
|
||||
public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0,$source=0)
|
||||
{
|
||||
$make = app()->make(StoreCartRepository::class);
|
||||
$where = [
|
||||
@ -1970,6 +1970,7 @@ class ProductRepository extends BaseRepository
|
||||
'product_id' => $productId,
|
||||
'uid' => $uid,
|
||||
'product_attr_unique' => $product_attr_unique,
|
||||
'source'=>$source
|
||||
];
|
||||
$cart_num = $make->getSearch($where)->sum('cart_num');
|
||||
return $cart_num;
|
||||
|
Loading…
x
Reference in New Issue
Block a user