feat : site

This commit is contained in:
2024-11-21 14:44:29 +08:00
parent 56d6a9c224
commit 4e8007deff

View File

@@ -72,9 +72,9 @@ class SystemUtil
// 提取经纬度 // 提取经纬度
$lat1 = deg2rad($locationOneArr['lat']); $lat1 = deg2rad($locationOneArr['lat']);
$lon1 = deg2rad($locationOneArr['lon']); $lon1 = deg2rad($locationOneArr['lng']);
$lat2 = deg2rad($locationTwoArr['lat']); $lat2 = deg2rad($locationTwoArr['lat']);
$lon2 = deg2rad($locationTwoArr['lon']); $lon2 = deg2rad($locationTwoArr['lng']);
// 计算距离 // 计算距离
$dLat = $lat2 - $lat1; $dLat = $lat2 - $lat1;