Browse Source

店铺 状态

master
Lemon 5 years ago
parent
commit
67cf86ebe3
  1. 7
      app/Controller/v3/StoreController.php

7
app/Controller/v3/StoreController.php

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

Loading…
Cancel
Save