|
|
@ -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']); |
|
|
|