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