From 1fb7bf4ea74c9e3d8d2abb2920a83996f3fcb58c Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Tue, 11 Feb 2025 16:03:43 +0800 Subject: [PATCH] feat : site --- app/Extend/SystemUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,