Commit 4bb1b0c6 authored by zw's avatar zw

地图找房

parent c3071ff2
......@@ -48,8 +48,8 @@ class MapFindHouse extends Basic
return $this->response("101", "坐标传入有误1");
}
$conditions = [];
$conditions["longitude"] = array("between", array($first_spot_arr[0], $second_spot_arr[0]));
$conditions["latitude"] = array("between", array($first_spot_arr[1], $second_spot_arr[1]));
$conditions["latitude"] = array("between", array($first_spot_arr[0], $second_spot_arr[0]));
$conditions["longitude"] = array("between", array($first_spot_arr[1], $second_spot_arr[1]));
$field = "id,internal_title,longitude,latitude";
$result = $this->gHousesModel->getHousesListByMap($field, $conditions);
......
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