moons admin controller

This commit is contained in:
2019-12-28 15:54:05 -06:00
parent f27e24e746
commit 38947493a1

View File

@@ -237,7 +237,7 @@ class MoonsAdminController extends Controller
//Take the contact name and create a character_id from it
if($request->contact == 'None') {
$contact = 'None';
$contact = -1;
} else {
$contact = $lookup->CharacterNameToId($request->contact);
}
@@ -257,8 +257,10 @@ 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->GetCharacterInfo($contact);
$corp = $lookup->LookupCorporation($char->character_id, null);
//Takes the corp id and looks up the corporation info
$corp = $lookup->GetCorporationInfo($char->corporation_id);
$allianceId = $corp->alliance_id;
//Create the date