作者 lyh

GX

@@ -35,7 +35,7 @@ class UpdateSeoTdkCrontab extends Command @@ -35,7 +35,7 @@ class UpdateSeoTdkCrontab extends Command
35 */ 35 */
36 public function handle() 36 public function handle()
37 { 37 {
38 - $project_ids = Project::where('type', Project::TYPE_TWO)->where('extend_type',0)->where('delete_status',0)->where('uptime', '<=', date('Y-m-d H:i:s'))->pluck('id')->toArray(); 38 + $project_ids = Project::where('type', Project::TYPE_TWO)->where('site_status',0)->where('extend_type',0)->where('delete_status',0)->where('uptime', '<=', date('Y-m-d H:i:s'))->pluck('id')->toArray();
39 foreach ($project_ids as $project_id){ 39 foreach ($project_ids as $project_id){
40 try { 40 try {
41 ProjectUpdateTdk::add_task($project_id); 41 ProjectUpdateTdk::add_task($project_id);
@@ -44,7 +44,7 @@ class UpdateSeoTdkCrontab extends Command @@ -44,7 +44,7 @@ class UpdateSeoTdkCrontab extends Command
44 } 44 }
45 } 45 }
46 46
47 - $project_ids = Project::where('type', Project::TYPE_TWO)->where('extend_type',0)->where('delete_status',0)->where('tag_page_version', '>' ,1)->where('uptime', '<=', date('Y-m-d H:i:s'))->pluck('id')->toArray(); 47 + $project_ids = Project::where('type', Project::TYPE_TWO)->where('site_status',0)->where('extend_type',0)->where('delete_status',0)->where('tag_page_version', '>' ,1)->where('uptime', '<=', date('Y-m-d H:i:s'))->pluck('id')->toArray();
48 foreach ($project_ids as $project_id){ 48 foreach ($project_ids as $project_id){
49 try { 49 try {
50 ProjectKeywordAiTask::add_task($project_id); 50 ProjectKeywordAiTask::add_task($project_id);