diff --git a/app/controller/api/Dictionary.php b/app/controller/api/Dictionary.php index b128669..eae8a16 100644 --- a/app/controller/api/Dictionary.php +++ b/app/controller/api/Dictionary.php @@ -81,10 +81,10 @@ class Dictionary extends Base if($lng && $lat){ $distance = get_distance($lat,$lng,$item['lat'],$item['lng']); - if($distance>=1000){ - $distance = round($distance/1000,2)."Km"; + if ($distance >= 1000) { + $distance = round($distance/1000,2)."km"; }else{ - $distance.="m"; + $distance .= "m"; } $item['distance_text'] = $distance; }else{