* Finish task #41215.

This commit is contained in:
tianshujie98
2021-08-10 11:31:15 +08:00
parent 105458335f
commit 751900edf9
11 changed files with 266 additions and 219 deletions
+6
View File
@@ -801,6 +801,12 @@ class testtaskModel extends model
->remove('comment,uid')
->get();
if($testtask->realFinishedDate <= $oldTesttask->begin)
{
dao::$errors[] = sprintf($this->lang->testtask->finishedDateError, $oldTesttask->begin);
return false;
}
$testtask = $this->loadModel('file')->processImgURL($testtask, $this->config->testtask->editor->close['id'], $this->post->uid);
$this->dao->update(TABLE_TESTTASK)->data($testtask)
->autoCheck()