配置修改

This commit is contained in:
2026-04-17 21:44:50 +08:00
parent 5e5d201de5
commit b0f38c3c73
2 changed files with 103 additions and 3 deletions

View File

@ -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('请求类型错误');
}
}
/**
* 店铺列表
*/