wallet
This commit is contained in:
39
app/Jobs/WalletAddrTransactionChangeQueue.php
Normal file
39
app/Jobs/WalletAddrTransactionChangeQueue.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\Wallet\PlatformUser\WalletPlatformUserTransactionModel;
|
||||
use App\Models\Wallet\Wallet\WalletAddrModel;
|
||||
use App\Models\Wallet\Wallet\WalletAddrTransactionModel;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class WalletAddrTransactionChangeQueue implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//钱包账变队列,用于处理用户和平台账变
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*/
|
||||
public function handle(array $params): void
|
||||
{
|
||||
|
||||
$wallet_addr_transaction_id = $params['wallet_addr_transaction_id'];
|
||||
$wallet_addr_transaction_type = $params['wallet_addr_transaction_type'];
|
||||
|
||||
$oWalletAddrModel = new WalletAddrModel();
|
||||
$oWalletAddrModel->walletAddrTransactionChangeConsumer($wallet_addr_transaction_id, $wallet_addr_transaction_type);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user