mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 06:54:51 +00:00
完善代码,增加人机验证检测
This commit is contained in:
@@ -92,12 +92,12 @@ class Hdchina implements decodeBase
|
|||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get($url);
|
$html = self::get($url);
|
||||||
p($html);
|
#p($html);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
$data = self::decode($html);
|
$data = self::decode($html);
|
||||||
p($data);exit;
|
#p($data);exit;
|
||||||
Rpc::call($data);
|
Rpc::call($data);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
@@ -112,6 +112,10 @@ class Hdchina implements decodeBase
|
|||||||
{
|
{
|
||||||
// 发起请求
|
// 发起请求
|
||||||
$html = requests::get(self::HOST.$url);
|
$html = requests::get(self::HOST.$url);
|
||||||
|
if(strpos($html,'系统检测到过多的种子下载请求') != false){
|
||||||
|
echo "触发人机验证 \n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
// 获取列表页数据
|
// 获取列表页数据
|
||||||
$data = selector::select($html, "//*[@class='tbname']");
|
$data = selector::select($html, "//*[@class='tbname']");
|
||||||
if(!$data){
|
if(!$data){
|
||||||
|
Reference in New Issue
Block a user