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