|
@@ -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);
|