diff --git a/app/Controller/v3/GoodsController.php b/app/Controller/v3/GoodsController.php index ed9eddc..060ddfb 100644 --- a/app/Controller/v3/GoodsController.php +++ b/app/Controller/v3/GoodsController.php @@ -55,7 +55,7 @@ class GoodsController extends BaseController if(isset($params['user_id'])) { $res['shopcart']['count'] = $this->shopCartService->check(111); - $res['shopcart']['total'] = $this->shopCartService->getTotal(); + $res['shopcart']['total'] = $this->shopCartService->getTotal($params['user_id'],$params['market_id']); $res['detail']->store->is_collected = (bool)$this->collectService->check($params['user_id'], $res['detail']->store->id); }else{ $res['shopcart'] = '';