作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !3206
@@ -221,7 +221,7 @@ class UpdateSeoTdk extends Command @@ -221,7 +221,7 @@ class UpdateSeoTdk extends Command
221 while (true) { 221 while (true) {
222 $task = ProjectUpdateTdk::getPendingTask(); 222 $task = ProjectUpdateTdk::getPendingTask();
223 if (!$task) { 223 if (!$task) {
224 - sleep(10); 224 + sleep(60);
225 continue; 225 continue;
226 } 226 }
227 $project_id = $task->project_id; 227 $project_id = $task->project_id;
@@ -54,12 +54,12 @@ class ProjectUpdateTdk extends Base @@ -54,12 +54,12 @@ class ProjectUpdateTdk extends Base
54 $project_id = Redis::rpop('updateSeoTdk'); 54 $project_id = Redis::rpop('updateSeoTdk');
55 $data = []; 55 $data = [];
56 if($project_id){ 56 if($project_id){
57 - $data = self::where('status', self::STATUS_PENDING)->where('project_id', $project_id)->orderBy('id', 'asc')->first(); 57 + $data = self::select(['id','project_id'])->where('status', self::STATUS_PENDING)->where('project_id', $project_id)->orderBy('id', 'asc')->first();
58 } 58 }
59 if($data){ 59 if($data){
60 return $data; 60 return $data;
61 } 61 }
62 - return self::where('status', self::STATUS_PENDING)->orderBy('id', 'asc')->first(); 62 + return self::select(['id','project_id'])->where('status', self::STATUS_PENDING)->orderBy('id', 'asc')->first();
63 } 63 }
64 64
65 /** 65 /**