diff --git a/app/Controller/v3/OrderOnlineController.php b/app/Controller/v3/OrderOnlineController.php index ecab40c..554a029 100644 --- a/app/Controller/v3/OrderOnlineController.php +++ b/app/Controller/v3/OrderOnlineController.php @@ -93,7 +93,7 @@ class OrderOnlineController extends BaseController ]) ->select('id') ->first(); - // $res['location'] = $this->userAddressService->getAddressAndDistributionRrice($address->id,$marketId); + $res['location'] = $this->userAddressService->getAddressAndDistributionRrice($address->id,$marketId); //返回预约送达时间 数组 $res['appointment_time'] = $this->appointmentTimeService->do(); // diff --git a/app/Service/v3/Implementations/LocationService.php b/app/Service/v3/Implementations/LocationService.php index 671cf71..a80a062 100644 --- a/app/Service/v3/Implementations/LocationService.php +++ b/app/Service/v3/Implementations/LocationService.php @@ -94,7 +94,8 @@ class LocationService implements LocationServiceInterface $resultArr = json_decode($result,true); if($resultArr['status'] > 0) { - 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;