hauling helper

This commit is contained in:
2019-09-28 00:18:40 -05:00
parent 868858258e
commit 7ab9610392

View File

@@ -30,12 +30,12 @@ class HaulingHelper {
$system2 = SolarSystem::where(['name' => $name2])->first();
try {
$route = $this->esi->invoke('get', '/route/{origin}/{destination}/', [
$route = $this->esi->setQueryString([
'flag' => 'secure',
])->invoke('get', '/route/{origin}/{destination}/', [
'origin' => $system1->solar_system_id,
'destination' => $system2->solar_system_id,
])->setQueryString([
'flag' => 'secure',
])->invoke();
]);
} catch(RequestFailedException $e) {
return -1;
}