From d78bf240d9d4a175da2ca38c7ecc792c17f4e1e2 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 26 Mar 2020 18:17:18 +0800 Subject: [PATCH] Update Queue.php --- app/admin/controller/api/Queue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/api/Queue.php b/app/admin/controller/api/Queue.php index be1152f83..63029d9f0 100644 --- a/app/admin/controller/api/Queue.php +++ b/app/admin/controller/api/Queue.php @@ -36,8 +36,8 @@ class Queue extends Controller public function progress() { $input = $this->_vali(['code.require' => '任务编号不能为空!']); - $result = QueueService::instance()->initialize($input['code'])->progress(); - $this->success('获取任务进度成功!', $result); + $queue = QueueService::instance()->initialize($input['code']); + $this->success('获取任务进度成功!', $queue->progress()); } } \ No newline at end of file