Browse Source

店铺收藏状态

master
weigang 5 years ago
parent
commit
2b2cde2325
  1. 3
      app/Controller/v3/StoreController.php

3
app/Controller/v3/StoreController.php

@ -49,7 +49,8 @@ class StoreController extends BaseController
*/ */
public function index(StoreIndexRequest $request) public function index(StoreIndexRequest $request)
{ {
$params = $request->validated();
$params = $this->request->all();
$data = $this->storeService->detail($params['store_id']); $data = $this->storeService->detail($params['store_id']);
$data['is_collected'] = (bool)$this->collectService->check($params['user_id'],$params['store_id']); $data['is_collected'] = (bool)$this->collectService->check($params['user_id'],$params['store_id']);
$data['goods_types'] = $this->categoryService->allForStore($params['store_id']); $data['goods_types'] = $this->categoryService->allForStore($params['store_id']);

Loading…
Cancel
Save