diff --git a/app/Controller/v3/GoodsController.php b/app/Controller/v3/GoodsController.php index dd98e2f..b6298fe 100644 --- a/app/Controller/v3/GoodsController.php +++ b/app/Controller/v3/GoodsController.php @@ -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);