配置修改

This commit is contained in:
2026-04-17 21:30:19 +08:00
parent 7813ec22b6
commit 5e5d201de5
2 changed files with 15 additions and 3 deletions

View File

@ -35,11 +35,12 @@ 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($shopId, $this->user_id, input());
$data = ShopLogic::getShopInfo($city_id,$shopId, $this->user_id, input());
return JsonServer::success('获取店铺信息成功', $data);
}else{
return JsonServer::error('请求类型错误');