|
|
@ -89,7 +89,7 @@ class UserAddressService implements UserAddressServiceInterface |
|
|
throw new ErrorCodeException(ErrorCode::LOCATION_USER_ADDRESS); |
|
|
throw new ErrorCodeException(ErrorCode::LOCATION_USER_ADDRESS); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$distance = $this->locationService->getDistanceByTencent($address['address']->lng,$address['address']->lat,$market->lng,$market->lat); |
|
|
|
|
|
|
|
|
$distance = $this->locationService->getDistanceByTencent($market->lng,$market->lat,$address['address']->lng,$address['address']->lat); |
|
|
$distributionPrice = $this->distributionPriceService->do($distance); |
|
|
$distributionPrice = $this->distributionPriceService->do($distance); |
|
|
$res['address'] = $address; |
|
|
$res['address'] = $address; |
|
|
$res['delivery_distance'] = $distance; |
|
|
$res['delivery_distance'] = $distance; |
|
|
|