ledger stuff for users

This commit is contained in:
2021-03-21 01:11:46 +09:00
parent c6b5f01c55
commit 0694940507
2 changed files with 3 additions and 5 deletions

View File

@@ -234,8 +234,8 @@ class MiningTaxesController extends Controller
$character = $lookup->GetCharacterInfo($config['primary']); $character = $lookup->GetCharacterInfo($config['primary']);
//Get the corporation information from the character id //Get the corporation information from the character id
$corpInfo = $lookup->GetCorporationInfo(auth()->user()->getId()); $corpInfo = $lookup->GetCorporationInfo($character->corporation_id);
dd($corpInfo);
//Get the observers from the database //Get the observers from the database
$observers = Observer::all(); $observers = Observer::all();

View File

@@ -29,9 +29,7 @@ class LookupHelper {
public function __construct() { public function __construct() {
//Declare a variable for use by the construct //Declare a variable for use by the construct
$esiHelper = new Esi; $esiHelper = new Esi;
$config = config('esi'); $this->esi = $esiHelper->SetupEsiAuthentication();
$refreshToken = $esiHelper->GetRefreshToken($config['primary']);
$this->esi = $esiHelper->SetupEsiAuthentication($refreshToken);
} }
public function ItemNameToId($itemName) { public function ItemNameToId($itemName) {