troubleshooting moon mining ledger

This commit is contained in:
2019-12-09 23:27:07 -06:00
parent 3d4dd88c07
commit b14301711b

View File

@@ -55,7 +55,7 @@ class MoonLedgerController extends Controller
//Get the character data from the lookup table if possible or esi
$character = $lookup->GetCharacterInfo(auth()->user()->getId());
dd($character);
//Try to get the mining observers for the corporation from esi
try {
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
@@ -66,6 +66,8 @@ class MoonLedgerController extends Controller
return redirect('/dashboard')->with('error', 'Failed to get mining structures.');
}
dd($response);
foreach($response as $resp) {
//Try to get the structure information from esi
try {