Update Queue.php

This commit is contained in:
Anyon 2020-03-26 18:17:18 +08:00
parent 1104f1096a
commit d78bf240d9

View File

@ -36,8 +36,8 @@ class Queue extends Controller
public function progress() public function progress()
{ {
$input = $this->_vali(['code.require' => '任务编号不能为空!']); $input = $this->_vali(['code.require' => '任务编号不能为空!']);
$result = QueueService::instance()->initialize($input['code'])->progress(); $queue = QueueService::instance()->initialize($input['code']);
$this->success('获取任务进度成功!', $result); $this->success('获取任务进度成功!', $queue->progress());
} }
} }