From c9a8039afae5e04636e34aa179e77d087b8902f4 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Thu, 16 Jan 2020 14:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=93=B7=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E6=9C=BA=E6=A3=80=E6=B5=8B=EF=BC=8C=E8=A7=A6=E5=8F=91=E4=BA=BA?= =?UTF-8?q?=E6=9C=BA=E6=99=BA=E8=83=BD=E8=B7=B3=E8=BF=87=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E8=BE=85=E7=A7=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iyuu.cn.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iyuu.cn.php b/iyuu.cn.php index d1815d1..caa2749 100644 --- a/iyuu.cn.php +++ b/iyuu.cn.php @@ -436,6 +436,9 @@ class iyuuAutoReseed self::$wechatMsg['reseedSkip']++; break; } + if ( isset($configALL[$sites[$sitesID]['site']]['limit']) ) { + echo "当前站点触发人机验证,已加入排除列表 \n"; + } $cookie = isset($configALL[$sites[$sitesID]['site']]['cookie']) ? $configALL[$sites[$sitesID]['site']]['cookie'] : ''; $userAgent = $configALL['default']['userAgent']; // 拼接URL @@ -452,6 +455,12 @@ class iyuuAutoReseed $_url = 'https://' .$sites[$sitesID]['base_url']. '/' . $_url; print "种子下载页:".$_url. "\n"; $url = download($_url, $cookie, $userAgent); + if(strpos($url,'系统检测到过多的种子下载请求') != false){ + echo "触发人机验证 \n"; + ff($sites[$sitesID]['site']. ' 触发人机验证,请重新设置!'); + self::$noReseed[] = 'hdchina'; + $configALL[$sites[$sitesID]['site']]['limit'] = 1; + } break; case 'hdcity': if ( empty($configALL[$sites[$sitesID]['site']]['cookie']) ) {