作者 lyh

gx

@@ -60,7 +60,7 @@ class AiBlogAutoPublish extends Command @@ -60,7 +60,7 @@ class AiBlogAutoPublish extends Command
60 public function auto_publish() 60 public function auto_publish()
61 { 61 {
62 $this->output('开始自动发布博客文章'); 62 $this->output('开始自动发布博客文章');
63 - $projects = Project::where('is_ai_blog', 1)->where('delete_status',0)->where('site_status',0)->where('extend_type',0)->get(); 63 + $projects = Project::where('is_ai_blog', 1)->whereIn('type',[1,2,3,4,6])->where('delete_status',0)->where('site_status',0)->where('extend_type',0)->get();
64 foreach ($projects as $project) { 64 foreach ($projects as $project) {
65 try { 65 try {
66 $this->output("项目{$project->id}开始自动发布"); 66 $this->output("项目{$project->id}开始自动发布");
@@ -73,7 +73,7 @@ class AiVideoAutoPublish extends Command @@ -73,7 +73,7 @@ class AiVideoAutoPublish extends Command
73 $this->output('开始自动发布Video文章'); 73 $this->output('开始自动发布Video文章');
74 $projectModel = new Project(); 74 $projectModel = new Project();
75 $optimizeModel = new DeployOptimize(); 75 $optimizeModel = new DeployOptimize();
76 - $projectList = $projectModel->list(['is_ai_video'=>1,'delete_status'=>0,'site_status'=>0,'extend_type'=>0],'id',['id','project_type']); 76 + $projectList = $projectModel->list(['is_ai_video'=>1,'type'=>['in',[1,2,3,4,6]],'delete_status'=>0,'site_status'=>0,'extend_type'=>0],'id',['id','project_type']);
77 foreach ($projectList as $item){ 77 foreach ($projectList as $item){
78 $this->output("项目{$item['id']}开始自动发布"); 78 $this->output("项目{$item['id']}开始自动发布");
79 //获取当前是否开启自动发布aiVideo 79 //获取当前是否开启自动发布aiVideo
@@ -118,7 +118,6 @@ class GeoQuestionResLogic extends BaseLogic @@ -118,7 +118,6 @@ class GeoQuestionResLogic extends BaseLogic
118 'core_question_count'=>$core_question_count, 118 'core_question_count'=>$core_question_count,
119 'core_keyword_url_count'=>$coreKeywordUrlCount 119 'core_keyword_url_count'=>$coreKeywordUrlCount
120 ]; 120 ];
121 -  
122 return $this->success($data); 121 return $this->success($data);
123 } 122 }
124 123