From be1f64175f2cf8e78f0e0980a92600dad3db6cc3 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 16 Sep 2020 19:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/LocationService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/v3/Implementations/LocationService.php b/app/Service/v3/Implementations/LocationService.php index bfcaaae..2e7eb18 100644 --- a/app/Service/v3/Implementations/LocationService.php +++ b/app/Service/v3/Implementations/LocationService.php @@ -160,8 +160,8 @@ class LocationService implements LocationServiceInterface $resultArr = json_decode($response,true); if($resultArr['status'] > 0) { - //return 1000; - throw new ErrorCodeException(ErrorCode::LOCATION_ERROR,$resultArr['message']); + return 1000; + //throw new ErrorCodeException(ErrorCode::LOCATION_ERROR,$resultArr['message']); } $distance = $resultArr['result']['routes'][0]['distance']; return $distance;