troubleshooting moon mining ledger

This commit is contained in:
2019-12-09 23:31:23 -06:00
parent 8e72fbdc0e
commit b137c41d7a

View File

@@ -37,6 +37,8 @@ class MoonLedgerController extends Controller
$structures = array();
$esiHelper = new Esi;
$lookup = new NewLookupHelper;
$response = null;
$structureInfo = null;
//Check for the esi scope
if(!$esiHelper->HaveEsiScope(auth()->user()->getId(), 'esi-industry.read_corporation_mining.v1')) {
@@ -66,9 +68,6 @@ class MoonLedgerController extends Controller
return redirect('/dashboard')->with('error', 'Failed to get mining structures.');
}
var_dump($response);
dd();
foreach($response as $resp) {
//Try to get the structure information from esi
try {
@@ -79,6 +78,9 @@ class MoonLedgerController extends Controller
//If an exception has occurred, then do nothing
}
var_dump($structureInfo);
dd();
//Setup the temporary array structure
$tempStructure = [
$resp->observer_id => $sturcutreInfo->name,