|
|
@ -55,7 +55,7 @@ class GoodsController extends BaseController |
|
|
|
|
|
|
|
|
if(isset($params['user_id'])) { |
|
|
if(isset($params['user_id'])) { |
|
|
$res['shopcart']['count'] = $this->shopCartService->check(111); |
|
|
$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); |
|
|
$res['detail']->store->is_collected = (bool)$this->collectService->check($params['user_id'], $res['detail']->store->id); |
|
|
}else{ |
|
|
}else{ |
|
|
$res['shopcart'] = ''; |
|
|
$res['shopcart'] = ''; |
|
|
|