Resolve "Fuel price change and geofence message change" #1620

Merged
jankstudio merged 2 commits from 693-fuel-price-change-and-geofence-message-change into master 2022-08-05 14:22:29 +00:00
Showing only changes of commit 80d4063238 - Show all commits

View file

@ -902,7 +902,7 @@ class APIController extends Controller implements LoggedController
{
// TODO: put geofence error message in config file somewhere
$res->setError(true)
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
->setErrorMessage($this->getGeoErrorMessage());
return $res->getReturnResponse();
}
@ -2308,7 +2308,7 @@ class APIController extends Controller implements LoggedController
if (!$is_covered)
{
$res->setError(true)
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
->setErrorMessage($this->getGeoErrorMessage());
}
return $res->getReturnResponse();
@ -2769,7 +2769,7 @@ class APIController extends Controller implements LoggedController
{
// TODO: put geofence error message in config file somewhere
$res->setError(true)
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
->setErrorMessage($this->getGeoErrorMessage());
return $res->getReturnResponse();
}
@ -4708,4 +4708,8 @@ class APIController extends Controller implements LoggedController
{
return trim(strtolower($string));
}
protected function getGeoErrorMessage() {
return 'Oops! Our service is limited to some areas in Metro Manila, Laguna, Cavite, Pampanga and Baguio only. We will update you as soon as we are able to cover your area';
}
}