lookup helper
This commit is contained in:
@@ -48,11 +48,12 @@ class LookupHelper {
|
||||
} catch(RequestFailedException $e) {
|
||||
|
||||
}
|
||||
dd($response->characters[0]->name);
|
||||
if(isset($response->character[0])) {
|
||||
$this->LookupCharacter($response->character[0]);
|
||||
|
||||
//If the data we are looking for is set, then process the data
|
||||
if(isset($response->characters[0]->id)) {
|
||||
$this->LookupCharacter($response->characters[0]->id);
|
||||
|
||||
return $response->character;
|
||||
return $response->characters[0]->id;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
34
app/Library/Lookups/NewLookupHelper.php
Normal file
34
app/Library/Lookups/NewLookupHelper.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Library\Lookups;
|
||||
|
||||
//Internal Libraries
|
||||
use DB;
|
||||
use Log;
|
||||
|
||||
//Library
|
||||
use Seat\Eseye\Cache\NullCache;
|
||||
use Seat\Eseye\Configuration;
|
||||
use Seat\Eseye\Containers\EsiAuthentication;
|
||||
use Seat\Eseye\Eseye;
|
||||
use Seat\Eseye\Exceptions\RequestFailedException;
|
||||
|
||||
//Models
|
||||
use App\Models\Lookups\CharacterToCorporation;
|
||||
use App\Models\Lookups\CorporationToAlliance;
|
||||
|
||||
class NewLookupHelper {
|
||||
|
||||
//Variables
|
||||
private $esi;
|
||||
|
||||
//Construct
|
||||
public function __construct() {
|
||||
$this->esi = new Eseye();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user