Commit 44b0b024 authored by zw's avatar zw

地图找房

parent 093098e3
...@@ -60,6 +60,12 @@ class MapFindHouse extends Basic ...@@ -60,6 +60,12 @@ class MapFindHouse extends Basic
return $this->response("200", "success", $result); 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() public function getCityInfoByMap()
{ {
$params = $this->params; $params = $this->params;
...@@ -76,7 +82,6 @@ class MapFindHouse extends Basic ...@@ -76,7 +82,6 @@ class MapFindHouse extends Basic
$conditions = []; $conditions = [];
$result = []; $result = [];
$result["grade"] = $params["grade"];
$disc = $this->regionsModel->getDiscByCity($params["city"]); $disc = $this->regionsModel->getDiscByCity($params["city"]);
$disc_str = ""; $disc_str = "";
...@@ -94,10 +99,10 @@ class MapFindHouse extends Basic ...@@ -94,10 +99,10 @@ class MapFindHouse extends Basic
} }
} }
$result["list"] = $disc; $result = $disc;
} elseif ($params["grade"] == 2) { } elseif ($params["grade"] == 2) {
$businessModel = new GBusinessDistrict(); $businessModel = new GBusinessDistrict();
$result["list"] = $businessModel->getListByMap($params["city"]); $result = $businessModel->getListByMap($params["city"]);
} }
return $this->response("200", "success", $result); return $this->response("200", "success", $result);
} }
......
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