no message

This commit is contained in:
hellcat committed 2026-01-04 14:51:30 +08:00
1 parent 8a9d5b0c65
commit 31d6685f47
11 files changed
+612 -22

No files matched your search

@@ -78,7 +78,7 @@ class FreenodeController extends Controller
{
$sDateCode = date("Ymd");
/// test
//// test
// ArticleList::where("code", $sDateCode)->delete();
//// test end
@@ -96,9 +96,24 @@ class FreenodeController extends Controller
self::_delLast();
$this->mainHtmlRe();
return $sHtmlUrl;
}
private function mainHtmlRe()
{
@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);
}
private function _delLast()
{
$iLastTime = strtotime("+365 day"); // 这边保存1年