mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update JobsQueue.php
This commit is contained in:
parent
43a3883247
commit
703c0fe37f
@ -17,6 +17,7 @@ namespace app\admin\queue;
|
|||||||
|
|
||||||
use app\admin\service\QueueService;
|
use app\admin\service\QueueService;
|
||||||
use think\console\Output;
|
use think\console\Output;
|
||||||
|
use think\queue\Job;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 基础指令公共类
|
* 基础指令公共类
|
||||||
@ -82,12 +83,12 @@ class JobsQueue
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动任务处理
|
* 启动任务处理
|
||||||
* @param \think\queue\Job $job 当前任务对象
|
* @param Job $job 当前任务对象
|
||||||
* @param array $data 任务执行对象
|
* @param array $data 任务执行对象
|
||||||
* @throws \think\Exception
|
* @throws \think\Exception
|
||||||
* @throws \think\exception\PDOException
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function fire(\think\queue\Job $job, $data = [])
|
public function fire(Job $job, $data = [])
|
||||||
{
|
{
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
$this->output = new Output();
|
$this->output = new Output();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user