mining tax testing

This commit is contained in:
2021-03-07 20:30:18 +09:00
parent 1156107243
commit 25d0b8ae98
2 changed files with 3 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ class MiningTaxesController extends Controller
//Get the esi data for extractions
try {
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
$extractions = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
'corporation_id' => $config['corporation'],
]);
} catch(RequestFailedException $e) {
@@ -113,8 +113,6 @@ class MiningTaxesController extends Controller
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);
@@ -127,7 +125,7 @@ class MiningTaxesController extends Controller
}
//Return the view with the extractions variable for html processing
return view('miningtax.user.display.upcoming')->with('extractions', $extractions);
return view('miningtax.user.display.upcoming')->with('structures', $structures);
}
/**

View File

@@ -15,7 +15,7 @@
<th>Decay Time</th>
</thead>
<tbody>
@foreach($extractions as $ex)
@foreach($structures as $ex)
<tr>
<td>{{ $ex['structure_name'] }}</td>
<td>{{ $ex['start_time'] }}</td>