xiaogang 4 年之前
父節點
當前提交
7043055591
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

xqd
@@ -128,7 +128,7 @@ class DynamicService
                 $distance = GetDistance($lat,$lng,$v['latitude'],$v['longitude']);
             }
             if($distance>=1){
-                $distance = $distance.'km';
+                $distance = round($distance,1).'km';
             }else{
                 $distance = round($distance*1000).'m';
             }