Commit 7b47f74c authored by suntengda's avatar suntengda

Merge branch 'tuancan' into test

parents 77eeacdb 40134752
...@@ -203,7 +203,7 @@ class TakePlaceService ...@@ -203,7 +203,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['latitude'],$item['longitude'],true); $item['distance'] = Geo::geoDistance($lat,$lng,$item['longitude'],$item['latitude'],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