* Refactor cancal method.

This commit is contained in:
tianshujie
2023-08-18 10:28:02 +08:00
parent 62a97977f0
commit 37e0b24728
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -811,6 +811,7 @@ class task extends control
}
/**
* 取消一个任务。
* Cancel a task.
*
* @param int $taskID
@@ -830,7 +831,7 @@ class task extends control
{
$this->loadModel('action');
$oldTask = $this->task->getById($taskID);
$oldTask = $this->task->getByID($taskID);
$task = $this->taskZen->buildTaskForCancel($oldTask);
$laneID = isset($output['laneID']) ? $output['laneID'] : '';
$this->task->cancel($task, (string)$laneID);