配置修改
This commit is contained in:
@ -35,18 +35,29 @@ class Shop extends Api
|
||||
{
|
||||
if($this->request->isGet()) {
|
||||
$shopId = $this->request->get('shop_id', '', 'trim');
|
||||
$city_id = $this->request->get('city_id', 0);
|
||||
$validate = Validate::rule('shop_id', 'require|integer|gt:0');
|
||||
if(!$validate->check(['shop_id'=>$shopId])) {
|
||||
return JsonServer::error($validate->getError());
|
||||
}
|
||||
$data = ShopLogic::getShopInfo($city_id,$shopId, $this->user_id, input());
|
||||
$data = ShopLogic::getShopInfo($shopId, $this->user_id, input());
|
||||
return JsonServer::success('获取店铺信息成功', $data);
|
||||
}else{
|
||||
return JsonServer::error('请求类型错误');
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 店铺列表信息
|
||||
*/
|
||||
public function getShopCityInfo()
|
||||
{
|
||||
if($this->request->isGet()) {
|
||||
$city_id = $this->request->get('city_id', 0);
|
||||
$data = ShopLogic::getShopCityInfo($city_id, $this->user_id, input());
|
||||
return JsonServer::success('获取店铺信息成功', $data);
|
||||
}else{
|
||||
return JsonServer::error('请求类型错误');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user