From 4e8007deff92ffafc180ec70dfd5a954ec87f3d7 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Thu, 21 Nov 2024 14:44:29 +0800 Subject: [PATCH] feat : site --- app/Extend/SystemUtil.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Extend/SystemUtil.php b/app/Extend/SystemUtil.php index f98971c..d53a0c2 100644 --- a/app/Extend/SystemUtil.php +++ b/app/Extend/SystemUtil.php @@ -72,9 +72,9 @@ class SystemUtil // 提取经纬度 $lat1 = deg2rad($locationOneArr['lat']); - $lon1 = deg2rad($locationOneArr['lon']); + $lon1 = deg2rad($locationOneArr['lng']); $lat2 = deg2rad($locationTwoArr['lat']); - $lon2 = deg2rad($locationTwoArr['lon']); + $lon2 = deg2rad($locationTwoArr['lng']); // 计算距离 $dLat = $lat2 - $lat1;