From 0f910419ff1d63c865c22acbae04311ac3c7d12c Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 12 Jun 2024 15:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20=E4=B8=8D=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=9D=90=E6=A0=87=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 b54aff9..dc3fcae 100644 --- a/app/Http/Controllers/Api/Hr/SignController.php +++ b/app/Http/Controllers/Api/Hr/SignController.php @@ -80,12 +80,12 @@ class SignController extends Controller $lon = $request->input('lon'); $lat = $request->input('lat'); // 切换坐标系 - $locationType = $request->input('location_type', 'wgs84'); - if ($locationType == 'wgs84') { - $res = wgs84ToGcj02($lat, $lon); - $lon = $res['lon']; - $lat = $res['lat']; - } + // $locationType = $request->input('location_type', 'wgs84'); + // if ($locationType == 'wgs84') { + // $res = wgs84ToGcj02($lat, $lon); + // $lon = $res['lon']; + // $lat = $res['lat']; + // } // 计算距离 $distance = $service->haversineDistance( $lat,