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;