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
44b0b024
Commit
44b0b024
authored
Oct 18, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图找房
parent
093098e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
MapFindHouse.php
application/api_broker/controller/MapFindHouse.php
+8
-3
No files found.
application/api_broker/controller/MapFindHouse.php
View file @
44b0b024
...
...
@@ -60,6 +60,12 @@ class MapFindHouse extends Basic
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
/**
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getCityInfoByMap
()
{
$params
=
$this
->
params
;
...
...
@@ -76,7 +82,6 @@ class MapFindHouse extends Basic
$conditions
=
[];
$result
=
[];
$result
[
"grade"
]
=
$params
[
"grade"
];
$disc
=
$this
->
regionsModel
->
getDiscByCity
(
$params
[
"city"
]);
$disc_str
=
""
;
...
...
@@ -94,10 +99,10 @@ class MapFindHouse extends Basic
}
}
$result
[
"list"
]
=
$disc
;
$result
=
$disc
;
}
elseif
(
$params
[
"grade"
]
==
2
)
{
$businessModel
=
new
GBusinessDistrict
();
$result
[
"list"
]
=
$businessModel
->
getListByMap
(
$params
[
"city"
]);
$result
=
$businessModel
->
getListByMap
(
$params
[
"city"
]);
}
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
...
...
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