modified the way characters are looked up in the database versus esi
This commit is contained in:
@@ -231,7 +231,7 @@ class ContractController extends Controller
|
||||
$characterId = auth()->user()->getId();
|
||||
$characterName = auth()->user()->getName();
|
||||
//Use the lookup helper in order to find the user's corporation id and name
|
||||
$char = $looup->LookupCharacter($characterId, null);
|
||||
$char = $lookup->GetCharacterInfo($characterId);
|
||||
$corporationId = $char->corporation_id;
|
||||
//use the lookup helper in order to find the corporation's name from it's id.
|
||||
$corp = $lookup->LookupCorporation($corporationId, null);
|
||||
|
||||
@@ -257,7 +257,7 @@ class MoonsAdminController extends Controller
|
||||
}
|
||||
|
||||
//Let's find the corporation and alliance information to ascertain whethery they are in Warped Intentions or another Legacy Alliance
|
||||
$char = $lookup->LookupCharacter($contact, null);
|
||||
$char = $lookup->GetCharacterInfo($contact);
|
||||
$corp = $lookup->LookupCorporation($char->character_id, null);
|
||||
$allianceId = $corp->alliance_id;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class WikiController extends Controller
|
||||
$charId = $charIdTemp[0]->character_id;
|
||||
|
||||
//Set the corp id
|
||||
$char = $lookup->LookupCharacter($charId, null);
|
||||
$char = $lookup->GetCharacterInfo($charId);
|
||||
$corpId = $char->corporation_id;
|
||||
|
||||
//Set the alliance id
|
||||
|
||||
Reference in New Issue
Block a user