This commit is contained in:
2018-11-12 23:36:15 -06:00
parent 989cfecc6b
commit 1ad9edd170
2 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class FleetsController extends Controller
//Check for the fleet in the database //Check for the fleet in the database
$check = DB::table('Fleets')->where('fleet', $fleetUri)->first(); $check = DB::table('Fleets')->where('fleet', $fleetUri)->first();
//If we do not find the fleet, let's create it. //If we do not find the fleet, let's create it.
if($check !== null) { if($check === null) {
$current = Carbon::now(); $current = Carbon::now();
//If we are between 00:00 and 05:00, we want to set the end time for 0500 //If we are between 00:00 and 05:00, we want to set the end time for 0500
if($current->hour > 0 && $current->hour < 5) { if($current->hour > 0 && $current->hour < 5) {

View File

@@ -79,6 +79,12 @@ class Fleet {
]); ]);
} }
public function AddPilot($charId) {
//Get the ESI token for the FC to add the new pilot
$token = DB::table('EsiTokens')->where('character_id', $this->fcId)->first();
//Create the ESI Call
}
public function RenderFleetDisplay() { public function RenderFleetDisplay() {
if(!$this->HaveEsiScope($this->fcId, 'esi-fleets.read_fleet.v1')) { if(!$this->HaveEsiScope($this->fcId, 'esi-fleets.read_fleet.v1')) {
return false; return false;