作者 赵彬吉

update

... ... @@ -123,6 +123,7 @@ class AiBlogAutoPublish extends Command
*/
public function auto_open()
{
while (true) {
$this->output('上线的推广项目自动开启');
$projects = Project::whereIn('type', [Project::TYPE_TWO, Project::TYPE_FOUR])
->whereNotNull('uptime')->where('is_ai_blog', 0)
... ... @@ -141,6 +142,8 @@ class AiBlogAutoPublish extends Command
$this->output('自动开启项目:' . $project->id);
}
}
sleep(60);
}
}
/**
... ...