git 6 éve
szülő
commit
80cae5372c
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Home/Lib/Action/ApiAction.class.php

+ 1 - 1
Home/Lib/Action/ApiAction.class.php

@@ -262,7 +262,7 @@ class ApiAction extends Action {
 		foreach($res as $key => $row){
 			$alterRes = $lngLatAlter->convertBd09ToGcj02($row['Latitude'], $row['Longitude']);
 			$row['Latitude'] = $alterRes['lat'];
-			$row['Longitude'] = $alterRes['lat'];
+			$row['Longitude'] = $alterRes['lng'];
 			$res[$key] = $row; 
 		}
 		json_success('查询成功',$res);