modified the way characters are looked up in the database versus esi

This commit is contained in:
2019-12-11 23:44:24 -06:00
parent e6173a7f17
commit 21a85add82
5 changed files with 72 additions and 17 deletions
@@ -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;
+1 -1
View File
@@ -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