master
wangxinglong 2022-01-27 16:51:51 +08:00
parent cab4059c48
commit 3fdcd0fba6
1 changed files with 3 additions and 3 deletions

View File

@ -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{