songxingwei 2 лет назад
Родитель
Сommit
5961685bff
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      application/admin/controller/Queue.php

+ 0 - 5
application/admin/controller/Queue.php

@@ -200,11 +200,6 @@ class Queue extends Controller
             $this->error('重置任务失败');
         }
 
-        $queue = Db::name($this->table)->where('id',$id)->find();
-        $info = Db::name($this->table)->where('type',$queue['type'])->whereIn('status','1,2')->count();
-        if ($info){
-            $this->error('有待处理或处理中的任务,无法重置');
-        }
         $log = ['action'=>'上传记录','content'=>'重置任务'];
         $this->_save($this->table,['status' => '1'],$log);
     }