Browse Source

定位

master
Lemon 5 years ago
parent
commit
be1f64175f
  1. 4
      app/Service/v3/Implementations/LocationService.php

4
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;

Loading…
Cancel
Save