配置修改

This commit is contained in:
2026-04-18 14:40:11 +08:00
parent 7eaf46cf27
commit 32ec0607d0
2 changed files with 8 additions and 9 deletions

View File

@ -26,7 +26,7 @@ use app\api\logic\ShopLogic;
class Shop extends Api
{
public $like_not_need_login = ['getShopInfo', 'getShopList','getNearbyShops'];
public $like_not_need_login = ['getShopInfo', 'getShopList','getNearbyShops','getShopCityInfo'];
/**
* 店铺信息
@ -52,8 +52,7 @@ class Shop extends Api
{
if($this->request->isGet()) {
$city_id = $this->request->get('city_id', 0);
// $this->user_id
$data = ShopLogic::getShopCityInfo($city_id,"" , input());
$data = ShopLogic::getShopCityInfo($city_id, $this->user_id, input());
return JsonServer::success('获取店铺信息成功', $data);
}else{
return JsonServer::error('请求类型错误');