|
|
@ -100,7 +100,8 @@ class UserAddressService implements UserAddressServiceInterface |
|
|
$distributionRrice = bcmul(1.50,($km-3),2); |
|
|
$distributionRrice = bcmul(1.50,($km-3),2); |
|
|
break; |
|
|
break; |
|
|
case ($km >= 10) : |
|
|
case ($km >= 10) : |
|
|
throw new ErrorCodeException(ErrorCode::LOCATION_LONG_DISTANCE); |
|
|
|
|
|
|
|
|
$distributionRrice = bcmul(1.50,($km-3),2); |
|
|
|
|
|
// throw new ErrorCodeException(ErrorCode::LOCATION_LONG_DISTANCE);
|
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
$distributionRrice = 0; |
|
|
$distributionRrice = 0; |
|
|
|