@ -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;
}