From 703c0fe37f93b933cfe4412a2d5590afd41f6307 Mon Sep 17 00:00:00 2001 From: Anyon <zoujingli@qq.com> Date: Mon, 5 Aug 2019 10:26:25 +0800 Subject: [PATCH] Update JobsQueue.php --- application/admin/queue/JobsQueue.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/queue/JobsQueue.php b/application/admin/queue/JobsQueue.php index 89188cbba..698e010b9 100644 --- a/application/admin/queue/JobsQueue.php +++ b/application/admin/queue/JobsQueue.php @@ -17,6 +17,7 @@ namespace app\admin\queue; use app\admin\service\QueueService; 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 任务执行对象 * @throws \think\Exception * @throws \think\exception\PDOException */ - public function fire(\think\queue\Job $job, $data = []) + public function fire(Job $job, $data = []) { $this->data = $data; $this->output = new Output();