From f198d44a9d3d4610c2e7b63f8ad2a37c3a1934c2 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 22 Nov 2018 22:24:37 -0600 Subject: [PATCH] structures --- app/Console/Commands/corpJournal.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 7097862d4..bc09b2082 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -49,11 +49,14 @@ class CorpJournal extends Command $finance = new Finances(); //Get the corps with structures logged in the database $structures = DB::table('CorpStructures')->first(); - dd($structures); //Get the characters that have the esi-wallet.read_corporation_wallets.v1 //esi wallet scope $characters = DB::table('EsiScopes')->where('scope', 'esi-wallet.read_corporation_wallets.v1')->get(); //For each structure let's attemp to gather the characters owning the structures and peer into their wallets. - + foreach($characters as $char) { + if($char->character_id == $structures->character_id) { + $this->line('Found Character and Structure.'); + } + } } }