mining tax testing

This commit is contained in:
2021-03-07 20:28:56 +09:00
parent 460e7db116
commit 1156107243

View File

@@ -105,14 +105,16 @@ class MiningTaxesController extends Controller
//Get the esi data for extractions
try {
$extractions = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
'corporation_id' => $config['corporation'],
]);
} catch(RequestFailedException $e) {
Log::warning('Could not retrieve extractions from ESI in MiningTaxesController.php');
$extractions = null;
return redirect('/dashboard')->with('error', "Could not pull extractions from ESI data.");
}
$extractions = json_decode($response, false);
//Basically get the structure info and attach it to the variable set
foreach($extractions as $ex) {
$sName = $sHelper->GetStructureInfo($ex->structure_id);