Browse Source

计算距离 统一格式

master
Lemon 5 years ago
parent
commit
ad209efd78
  1. 2
      app/Service/v3/Implementations/UserAddressService.php

2
app/Service/v3/Implementations/UserAddressService.php

@ -89,7 +89,7 @@ class UserAddressService implements UserAddressServiceInterface
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);
$res['address'] = $address;
$res['delivery_distance'] = $distance;

Loading…
Cancel
Save