|
|
|
@ -54,6 +54,13 @@ class StoreController extends BaseController |
|
|
|
$data = $this->storeService->detail($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['in_business'] = $this->storeService->check($params['store_id']); |
|
|
|
if($data['in_business'] === true) |
|
|
|
{ |
|
|
|
$data['in_business_text'] = '营业中'; |
|
|
|
}else{ |
|
|
|
$data['in_business_text'] = '休息中'; |
|
|
|
} |
|
|
|
return $this->success(['store' => $data]); |
|
|
|
} |
|
|
|
|
|
|
|
|