* Refactor activate method.

This commit is contained in:
tianshujie
2023-08-18 10:03:06 +08:00
parent ce63ef4514
commit 46248c77a3
+2 -1
View File
@@ -850,6 +850,7 @@ class task extends control
}
/**
* 激活一个任务
* Activate a task.
*
* @param int $taskID
@@ -885,7 +886,7 @@ class task extends control
$this->executeHooks($taskID);
/* Get the information returned after a task is started. */
$task = $this->task->fetchById($taskID);
$task = $this->task->fetchByID($taskID);
$response = $this->taskZen->responseAfterChangeStatus($task, $from);
$this->send($response);
}