From 6c37f6d628f012a902c353ab2acc13a9e7ff7b50 Mon Sep 17 00:00:00 2001 From: net909 Date: Thu, 2 Jul 2026 18:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- app/lib/dns/henet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common.php b/app/common.php index c87ae35..df8086e 100644 --- a/app/common.php +++ b/app/common.php @@ -312,7 +312,7 @@ function getMainDomain($host) } } $domain_root = file_get_contents(app()->getBasePath() . 'data' . DIRECTORY_SEPARATOR . 'domain_root.txt'); - $domain_root = explode("\r\n", $domain_root); + $domain_root = explode("\n", $domain_root); $data = explode('.', $host); $co_ta = count($data); if ($co_ta <= 2) return $host; diff --git a/app/lib/dns/henet.php b/app/lib/dns/henet.php index 5d579af..ce4c483 100644 --- a/app/lib/dns/henet.php +++ b/app/lib/dns/henet.php @@ -534,7 +534,7 @@ class henet implements DnsInterface private function saveCachedSession() { if ($this->cookie !== '') { - Cache::set($this->cacheKey, $this->cookie, 3600); + Cache::set($this->cacheKey, $this->cookie, 3600 * 12); } }