Commit 33585d6c authored by suntengda's avatar suntengda

update app-拼单 自提点列表 经纬度问题

parent 0d968e37
...@@ -198,7 +198,7 @@ class TakePlaceService ...@@ -198,7 +198,7 @@ class TakePlaceService
if(!empty($list) && is_array($list)) { if(!empty($list) && is_array($list)) {
foreach ($list as &$item) { foreach ($list as &$item) {
if($item['longitude'] && $item['latitude']) { if($item['longitude'] && $item['latitude']) {
$item['distance'] = Geo::geoDistance($lat,$lng,$item['longitude'],$item['latitude'],true); $item['distance'] = Geo::geoDistance($lat,$lng,$item['latitude'],$item['longitude'],true);
$sort[] = $item['distance']; $sort[] = $item['distance'];
}else { }else {
$item['distance'] = ''; $item['distance'] = '';
......
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