Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
24e849f8
Commit
24e849f8
authored
Mar 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app经纪人获取省市区
parent
de6fdfc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Shop.php
application/api_broker/controller/Shop.php
+14
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Shop.php
View file @
24e849f8
...
@@ -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
);
}
}
}
application/route.php
View file @
24e849f8
...
@@ -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'
]],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment