added new job for updating alliance wallet journal
created new functions in finance helper
This commit is contained in:
@@ -56,6 +56,10 @@ class UpdateAllianceWalletJournal implements ShouldQueue
|
|||||||
$fHelper = new FinanceHelper;
|
$fHelper = new FinanceHelper;
|
||||||
$config = config('esi');
|
$config = config('esi');
|
||||||
|
|
||||||
$fHelper->GetApiWalletJournal(1, $config['primary']);
|
$pages = $fHelper->GetAllianceWalletJournalPages(1, $config['primary']);
|
||||||
|
|
||||||
|
for($i = 1; $i < $pages; $i++) {
|
||||||
|
UpdateAllianceWalletJournalPage::dispatch(1, $config['primary'], $page)->onQueue('finances');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class UpdateAllianceWalletJournalPage implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new job instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute the job.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user