no message
This commit is contained in:
parent
0ca8d1b8c4
commit
e481c21c07
@ -43,6 +43,10 @@ final class Cron
|
||||
if ($h % 8 === 0 && $i === 10) {
|
||||
CronArticleLive::client();
|
||||
}
|
||||
|
||||
if ($i === 50) {
|
||||
CronArticleLive::main();
|
||||
}
|
||||
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
|
||||
@ -65,4 +65,21 @@ final class ArticleLive
|
||||
echo "\n - ok";
|
||||
}
|
||||
|
||||
public static function main()
|
||||
{
|
||||
echo "\n\nArticleLive::main() - 开始";
|
||||
|
||||
@unlink("index.html");
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, env("APP_URL"));
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
|
||||
curl_exec($ch);
|
||||
|
||||
echo "\n - ok";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user