login dashboard and other lookup changes
This commit is contained in:
@@ -38,12 +38,18 @@ class ContractHelper {
|
||||
$this->esi = $esiHelper->SetupEsiAuthentication($token);
|
||||
}
|
||||
|
||||
public function GetNumOfContracts() {
|
||||
|
||||
}
|
||||
public function GetContracts($corpId) {
|
||||
$contracts = null;
|
||||
|
||||
public function GetContractDetails($contract) {
|
||||
try {
|
||||
$contracts = $this->esi->invoke('get', '/corporations/{corporation_id}/contracts/', [
|
||||
'corporation_id' => $corpId,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $contracts;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ use App\Library\Esi\Esi;
|
||||
use App\Models\Lookups\CharacterLookup;
|
||||
use App\Models\Lookups\CorporationLookup;
|
||||
use App\Models\Lookups\AllianceLookup;
|
||||
use App\Models\Lookups\SolarSystem;
|
||||
|
||||
class NewLookupHelper {
|
||||
//Variables
|
||||
@@ -692,6 +693,16 @@ class NewLookupHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function GetSolarSystemName($systemId) {
|
||||
$count = SolarSystem::where(['solar_system_id' => $systemId])->count();
|
||||
if($count != 0) {
|
||||
$system = SolarSystem::where(['solar_system_id' => $systemId])->first();
|
||||
return $system->name;
|
||||
} else {
|
||||
return 'N/A';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user