From 4eca061d2dd992fabeba9602b8c83791898ce310 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 12 Jun 2024 15:09:14 +0800 Subject: [PATCH] 1 --- app/Http/Controllers/Api/Hr/SignController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Api/Hr/SignController.php b/app/Http/Controllers/Api/Hr/SignController.php index dc3fcae..a5351cf 100644 --- a/app/Http/Controllers/Api/Hr/SignController.php +++ b/app/Http/Controllers/Api/Hr/SignController.php @@ -141,13 +141,13 @@ class SignController extends Controller if ($maxDistance > 0 && $type == SignType::Normal) { $lon = $request->input('position.lon'); $lat = $request->input('position.lat'); - $locationType = $request->input('position.location_type', 'wgs84'); // 切换坐标系 - if ($locationType == 'wgs84') { - $res = wgs84ToGcj02($lat, $lon); - $lon = $res['lon']; - $lat = $res['lat']; - } + // $locationType = $request->input('position.location_type', 'wgs84'); + // if ($locationType == 'wgs84') { + // $res = wgs84ToGcj02($lat, $lon); + // $lon = $res['lon']; + // $lat = $res['lat']; + // } $distance = $service->haversineDistance( $lat, $lon,