|
|
|
@ -52,6 +52,7 @@ class GoodsController extends BaseController |
|
|
|
$res['shopcart']['total'] = $this->shopCartService->getTotal(); |
|
|
|
$res['detail']->store->is_collected = (bool)$this->collectService->check($params['user_id'], $params['store_id']); |
|
|
|
}else{ |
|
|
|
$res['shopcart'] = ''; |
|
|
|
$res['detail']->store->is_collected = ''; |
|
|
|
} |
|
|
|
return $this->success($res); |
|
|
|
|