cleanup work

This commit is contained in:
2019-05-03 19:41:10 -05:00
parent ba92e2865d
commit a9878f243e
3 changed files with 11 additions and 79 deletions
+11 -11
View File
@@ -34,17 +34,6 @@ class FinanceHelper {
public function GetWalletTransaction($division, $charId) {
//Declare the lookup class helper
$lookups = new LookupHelper;
//Get the ESI refresh token for the corporation to add new wallet journals into the database
$tokenData = $this->TokenInfo($charId);
$token = $tokenData['token'];
$scope = $tokenData['scope'];
//If the token is not found, send the user an eve mail, and just exit out of the function
if($this->TokenNotFound($token, $scope)) {
printr("Token not found\n");
return null;
}
//Setup array for PI items
$pi_items = [
@@ -138,6 +127,17 @@ class FinanceHelper {
'2876',
];
//Get the ESI refresh token for the corporation to add new wallet journals into the database
$tokenData = $this->TokenInfo($charId);
$token = $tokenData['token'];
$scope = $tokenData['scope'];
//If the token is not found, send the user an eve mail, and just exit out of the function
if($this->TokenNotFound($token, $scope)) {
printr("Token not found\n");
return null;
}
//Reference to see if the character is in our look up table for corporations and characters
$corpId = $lookups->LookupCharacter($charId);