added reprocessing rate to process mining taxes ledgers job
This commit is contained in:
@@ -82,6 +82,7 @@ class ProcessSendEveMailJob implements ShouldQueue
|
||||
{
|
||||
//Declare some variables
|
||||
$esiHelper = new Esi;
|
||||
$response = null;
|
||||
|
||||
//Get the esi configuration
|
||||
$config = config('esi');
|
||||
@@ -115,6 +116,10 @@ class ProcessSendEveMailJob implements ShouldQueue
|
||||
return null;
|
||||
}
|
||||
|
||||
if($response == null) {
|
||||
$this->release(30);
|
||||
}
|
||||
|
||||
//Get the error code and take the appropriate action
|
||||
$errorCode = $response->getErrorCode();
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ class ProcessMiningTaxesLedgersJob implements ShouldQueue
|
||||
{
|
||||
$lookup = new LookupHelper;
|
||||
$mHelper = new MoonCalc;
|
||||
$config = config('esi');
|
||||
|
||||
//Get some of the basic information we need to work with
|
||||
$charName = $lookup->CharacterIdToName($this->ledger->character_id);
|
||||
@@ -74,7 +75,7 @@ class ProcessMiningTaxesLedgersJob implements ShouldQueue
|
||||
//Get the price from the helper function
|
||||
$price = $mHelper->CalculateOrePrice($this->ledger->type_id);
|
||||
//Calculate the total price based on the amount
|
||||
$amount = $price * $this->ledger->quantity;
|
||||
$amount = (($price * $this->ledger->quantity) * $config['refine_rate']);
|
||||
|
||||
$found = Ledger::where([
|
||||
'character_id' => $this->ledger->character_id,
|
||||
|
||||
@@ -8,5 +8,6 @@
|
||||
'alliance' => env('ESI_ALLIANCE', 99004116),
|
||||
'corporation' => env('ESI_CORPORATION', 98287666),
|
||||
'mining_tax' => 0.15,
|
||||
'refine_rate' => 0.7948248,
|
||||
];
|
||||
?>
|
||||
Reference in New Issue
Block a user