wallet
This commit is contained in:
@ -19,7 +19,7 @@ class AddPostQueue implements ShouldQueue
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
//处理用户的推文推送
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -18,7 +18,7 @@ class UserActiveStatusQueue implements ShouldQueue
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
//处理用户活跃状态改变后任务
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
35
app/Jobs/WalletPlatformUserWithdrawQueue.php
Normal file
35
app/Jobs/WalletPlatformUserWithdrawQueue.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\Wallet\PlatformUser\WalletPlatformUserTransactionModel;
|
||||
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 WalletPlatformUserWithdrawQueue implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//处理平台用户提现
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*/
|
||||
public function handle(array $params): void
|
||||
{
|
||||
$id = $params['wallet_platform_user_transaction_id'];
|
||||
$oWalletPlatformUserTransactionModel = new WalletPlatformUserTransactionModel();
|
||||
$oWalletPlatformUserTransactionModel->withdrawConsumer($id);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user