Commit 24e849f8 authored by hujun's avatar hujun

app经纪人获取省市区

parent de6fdfc9
...@@ -372,4 +372,18 @@ class Shop extends Basic ...@@ -372,4 +372,18 @@ class Shop extends Basic
$data = $regions->getRegionsCity(); $data = $regions->getRegionsCity();
return $this->response(200, '', $data); return $this->response(200, '', $data);
} }
/**
* 获取省市区
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getRegions() {
$regions = new Regions();
$data = $regions->getRegions();
return $this->response(200, '', $data);
}
} }
...@@ -358,6 +358,7 @@ Route::group('broker', [ ...@@ -358,6 +358,7 @@ Route::group('broker', [
'uploadHouseFile' => ['api_broker/shop/uploadHouseFile', ['method' => 'post']], //商铺上传文件 'uploadHouseFile' => ['api_broker/shop/uploadHouseFile', ['method' => 'post']], //商铺上传文件
'delHouseFile' => ['api_broker/shop/delHouseFile', ['method' => 'post']], //商铺文件删除 'delHouseFile' => ['api_broker/shop/delHouseFile', ['method' => 'post']], //商铺文件删除
'getAddress' => ['api_broker/shop/getAddress', ['method' => 'get']], //获取江浙沪城市 'getAddress' => ['api_broker/shop/getAddress', ['method' => 'get']], //获取江浙沪城市
'getRegions' => ['api_broker/shop/getRegions', ['method' => 'get']], //获取省市区
'selectPerformanceByTime' => ['api_broker/Performance/selectPerformanceByTime', ['method' => 'get']], 'selectPerformanceByTime' => ['api_broker/Performance/selectPerformanceByTime', ['method' => 'get']],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment