正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -60,8 +60,7 @@ class AiBlogAutoPublish extends Command | @@ -60,8 +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(); | ||
| 64 | - $projects = Project::where('id', 467)->where('delete_status',0)->where('site_status',0)->where('extend_type',0)->get(); | 63 | + $projects = Project::where('is_ai_blog', 1)->where('delete_status',0)->where('site_status',0)->where('extend_type',0)->get(); |
| 65 | foreach ($projects as $project) { | 64 | foreach ($projects as $project) { |
| 66 | try { | 65 | try { |
| 67 | $this->output("项目{$project->id}开始自动发布"); | 66 | $this->output("项目{$project->id}开始自动发布"); |
-
请 注册 或 登录 后发表评论