正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -123,6 +123,7 @@ class AiBlogAutoPublish extends Command | @@ -123,6 +123,7 @@ class AiBlogAutoPublish extends Command | ||
| 123 | */ | 123 | */ |
| 124 | public function auto_open() | 124 | public function auto_open() |
| 125 | { | 125 | { |
| 126 | + while (true) { | ||
| 126 | $this->output('上线的推广项目自动开启'); | 127 | $this->output('上线的推广项目自动开启'); |
| 127 | $projects = Project::whereIn('type', [Project::TYPE_TWO, Project::TYPE_FOUR]) | 128 | $projects = Project::whereIn('type', [Project::TYPE_TWO, Project::TYPE_FOUR]) |
| 128 | ->whereNotNull('uptime')->where('is_ai_blog', 0) | 129 | ->whereNotNull('uptime')->where('is_ai_blog', 0) |
| @@ -141,6 +142,8 @@ class AiBlogAutoPublish extends Command | @@ -141,6 +142,8 @@ class AiBlogAutoPublish extends Command | ||
| 141 | $this->output('自动开启项目:' . $project->id); | 142 | $this->output('自动开启项目:' . $project->id); |
| 142 | } | 143 | } |
| 143 | } | 144 | } |
| 145 | + sleep(60); | ||
| 146 | + } | ||
| 144 | } | 147 | } |
| 145 | 148 | ||
| 146 | /** | 149 | /** |
-
请 注册 或 登录 后发表评论