From 2b989f9e0e20f28ecc8706942f6da5ba608248be Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Mon, 13 Jul 2020 10:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=93=B7=E5=99=A8=E3=80=81?= =?UTF-8?q?=E5=9F=8E=E5=B8=82cookie=E8=BF=87=E6=9C=9F=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AutoReseed.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/AutoReseed.php b/app/AutoReseed.php index 60f8faf..57ad910 100644 --- a/app/AutoReseed.php +++ b/app/AutoReseed.php @@ -13,7 +13,7 @@ use IYUU\Library\Table; class AutoReseed { // 版本号 - const VER = '1.9.1'; + const VER = '1.9.2'; // RPC连接 private static $links = []; // 客户端配置 @@ -452,6 +452,7 @@ class AutoReseed print "种子详情页:".$details_url.PHP_EOL; $details_html = download($details_url, $cookie, $userAgent); if (empty($details_html)) { + ff($siteName. '站点,cookie已过期,请更新后重新辅种!'); echo 'cookie已过期,请更新后重新辅种!已加入排除列表'.PHP_EOL; $t = 30; do { @@ -471,6 +472,7 @@ class AutoReseed // 提取种子下载地址 $offset = strpos($details_html, str_replace('{hash}', '', $sites[$sid]['download_page'])); if ($offset === false) { + ff($siteName. '站点,cookie已过期,请更新后重新辅种!'); echo 'cookie已过期,请更新后重新辅种!'.PHP_EOL; $reseedPass = true; break; @@ -519,6 +521,12 @@ class AutoReseed $html = download($protocol .$sites[$sid]['base_url']. '/pt', $cookie, $userAgent); // 提取种子下载地址 $offset = strpos($html, 'cuhash='); + if ($offset === false) { + ff($siteName. '站点,cookie已过期,请更新后重新辅种!'); + echo 'cookie已过期,请更新后重新辅种!'.PHP_EOL; + $reseedPass = true; + break; + } $len = strlen('cuhash='); $cuhashTemp = substr($html, $offset+$len, 40); $configALL[$siteName]['cuhash'] = substr($cuhashTemp, 0, strpos($cuhashTemp, '"'));