作者 赵彬吉

update

... ... @@ -53,7 +53,7 @@ class ProjectUpdateTdk extends Base
//有其他任务 就取其他任务 没有其他任务运行未结束的任务
$project_id = Redis::rpop('updateSeoTdk');
$data = [];
if($project_id){
if(!$project_id){
$data = self::where('status', self::STATUS_PENDING)->where('project_id', $project_id)->orderBy('id', 'asc')->first();
}
if($data){
... ...