diff --git a/app/Extend/SystemUtil.php b/app/Extend/SystemUtil.php index d53a0c2..3d6e398 100644 --- a/app/Extend/SystemUtil.php +++ b/app/Extend/SystemUtil.php @@ -86,7 +86,7 @@ class SystemUtil // 根据单位转换距离 $distance = $earthRadius * $c; return match ($unit) { - 1 => $distance, //公里 + 1 => round($distance,5), //公里 2 => $distance * 1000, //英尺 3 => $distance * 3280.84, //米 default => 0,