优化任务插入

master
chenzhi 4 years ago
parent 62b566e8b8
commit 8b82fff791

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

Loading…
Cancel
Save