moon ledger stuff
This commit is contained in:
@@ -66,7 +66,7 @@ class MoonLedgerController extends Controller
|
|||||||
|
|
||||||
//Try to get the mining observers for the corporation from esi
|
//Try to get the mining observers for the corporation from esi
|
||||||
try {
|
try {
|
||||||
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
$responses = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
||||||
'corporation_id' => $character->corporation_id,
|
'corporation_id' => $character->corporation_id,
|
||||||
]);
|
]);
|
||||||
} catch(RequestFailedException $e) {
|
} catch(RequestFailedException $e) {
|
||||||
@@ -75,7 +75,7 @@ class MoonLedgerController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//For each mining observer, let's build the array of data to show on the page
|
//For each mining observer, let's build the array of data to show on the page
|
||||||
foreach($response as $response) {
|
foreach($responses as $response) {
|
||||||
//Try to get the structure information from esi
|
//Try to get the structure information from esi
|
||||||
try {
|
try {
|
||||||
$structureInfo = $esi->invoke('get', '/universe/structures/{structure_id}/', [
|
$structureInfo = $esi->invoke('get', '/universe/structures/{structure_id}/', [
|
||||||
|
|||||||
Reference in New Issue
Block a user