diff --git a/Application/Admin/Model/CmdTasksModel.class.php b/Application/Admin/Model/CmdTasksModel.class.php index 8e9d47b19..ace3a88d2 100644 --- a/Application/Admin/Model/CmdTasksModel.class.php +++ b/Application/Admin/Model/CmdTasksModel.class.php @@ -43,7 +43,7 @@ class CmdTasksModel extends Model{ //插入任务 public function addTask($type,$params,$need_tasksid = true,$need_path=true) { - $task = $this->field("end_time")->where(['status'=>"1",'type'=>$type])->order("id desc")->find(); + $task = $this->field("end_time")->where(['status'=>["in","0,1"],'type'=>$type])->order("id desc")->find(); if(!empty($task)){ return false; }