setName('certtask') ->setDescription('SSL证书续签与部署、域名到期提醒、CF优选IP更新'); } protected function execute(Input $input, Output $output) { $res = Db::name('config')->cache('configs', 0)->column('value', 'key'); Config::set($res, 'sys'); $res = (new OptimizeService())->execute(); if (!$res) { (new CertTaskService())->execute(); (new ExpireNoticeService())->task(); } echo 'done'.PHP_EOL; } }