lookup helper
This commit is contained in:
@@ -190,9 +190,14 @@ class LookupHelper {
|
|||||||
$corporation = $esi->invoke('get', '/corporations/{corporation_id}/', [
|
$corporation = $esi->invoke('get', '/corporations/{corporation_id}/', [
|
||||||
'corporation_id' => $corpId,
|
'corporation_id' => $corpId,
|
||||||
]);
|
]);
|
||||||
$alliance = $esi->invoke('get', '/alliances/{alliance_id}/', [
|
if(isset($corporation->alliance_id)) {
|
||||||
'alliance_id' => $corporation->alliance_id,
|
$alliance = $esi->invoke('get', '/alliances/{alliance_id}/', [
|
||||||
]);
|
'alliance_id' => $corporation->alliance_id,
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
} catch(\Seat\Eseye\Exceptions\RequestFailedException $e){
|
} catch(\Seat\Eseye\Exceptions\RequestFailedException $e){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user