Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
2 行增加
和
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)->get(); | ||
| 64 | - | 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}开始自动发布"); |
| @@ -122,6 +121,7 @@ class AiBlogAutoPublish extends Command | @@ -122,6 +121,7 @@ class AiBlogAutoPublish extends Command | ||
| 122 | ]); | 121 | ]); |
| 123 | $this->output("自动发布失败:" . $e->getMessage() . $e->getFile() . $e->getLine()); | 122 | $this->output("自动发布失败:" . $e->getMessage() . $e->getFile() . $e->getLine()); |
| 124 | } | 123 | } |
| 124 | + sleep(5); | ||
| 125 | } | 125 | } |
| 126 | } | 126 | } |
| 127 | 127 |
-
请 注册 或 登录 后发表评论