wallet tron transactions
This commit is contained in:
34
app/Jobs/Api/AddPostQueue.php
Normal file
34
app/Jobs/Api/AddPostQueue.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Api;
|
||||
|
||||
use App\Exceptions\ModelException;
|
||||
use App\Models\Api\Post\PostPushBoxModel;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class AddPostQueue implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//处理用户的推文推送
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
* @throws ModelException
|
||||
*/
|
||||
public function handle(array $params): void
|
||||
{
|
||||
$oPostPushBoxModel = new PostPushBoxModel();
|
||||
$oPostPushBoxModel->addPostQueueConsumer($params);
|
||||
}
|
||||
}
|
||||
32
app/Jobs/Api/UserActiveStatusQueue.php
Normal file
32
app/Jobs/Api/UserActiveStatusQueue.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Api;
|
||||
|
||||
use App\Models\Api\Customer\CustomerUserExtendModel;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UserActiveStatusQueue implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//处理用户活跃状态改变后任务
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*/
|
||||
public function handle(array $params): void
|
||||
{
|
||||
$oCustomerUserExtendModel = new CustomerUserExtendModel();
|
||||
$oCustomerUserExtendModel->activeUserStatusQueueConsumer($params);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user