From 426e47337d0751025c1d614e4351f69f64490444 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Fri, 21 Feb 2020 06:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E8=87=B31.5.0=20=E6=96=B0=E5=A2=9E=E6=B5=B7=E8=B1=9A=E9=9F=B3?= =?UTF-8?q?=E4=B9=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AutoReseed.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/AutoReseed.php b/app/AutoReseed.php index 5c8b18f..8a70cfd 100644 --- a/app/AutoReseed.php +++ b/app/AutoReseed.php @@ -13,7 +13,7 @@ use IYUU\Library\Table; class AutoReseed { // 版本号 - const VER = '1.2.0'; + const VER = '1.5.0'; // RPC连接 private static $links = array(); // 客户端配置 @@ -286,11 +286,11 @@ class AutoReseed wlog($hashArray, 'hashString'.$k); self::$wechatMsg['hashCount'] +=count($infohash_Dir); // 此处优化大于一万条做种时,设置超时 - if(count($infohash_Dir) > 5000){ + if (count($infohash_Dir) > 5000) { $connecttimeout = isset($configALL['default']['CONNECTTIMEOUT']) && $configALL['default']['CONNECTTIMEOUT']>60 ? $configALL['default']['CONNECTTIMEOUT'] : 60; $timeout = isset($configALL['default']['TIMEOUT']) && $configALL['default']['TIMEOUT']>600 ? $configALL['default']['TIMEOUT'] : 600; - self::$curl->setOpt(CURLOPT_CONNECTTIMEOUT,$connecttimeout); - self::$curl->setOpt(CURLOPT_TIMEOUT,$timeout); + self::$curl->setOpt(CURLOPT_CONNECTTIMEOUT, $connecttimeout); + self::$curl->setOpt(CURLOPT_TIMEOUT, $timeout); } echo "正在向服务器提交 clients_".$k." 种子哈希……".PHP_EOL; $res = self::$curl->post(self::$apiUrl . self::$endpoints['infohash'], $hashArray); @@ -694,6 +694,10 @@ class AutoReseed case 'ccfbits': $url = str_replace('{passkey}', $configALL[$site]['passkey'], $_url); break; + case 'dicmusic': + $_url = str_replace('{authkey}', $configALL[$site]['passkey'], $_url); + $url = str_replace('{torrent_pass}', $configALL[$site]['torrent_pass'], $_url); + break; default: $url = $_url."&passkey=". $configALL[$site]['passkey']; break;