Compare commits

..

3 Commits

Author SHA1 Message Date
iyuu.cn
f5a33843e6 v1.8.3 2020-06-18 08:45:40 +08:00
iyuu.cn
7428144aa8 移除SSD站点辅种计数器。 2020-06-18 08:44:57 +08:00
iyuu.cn
cc325dc128 删除无用.cmd批处理 2020-06-10 23:09:20 +08:00
4 changed files with 1 additions and 24 deletions

View File

@@ -1,2 +0,0 @@
@echo off
composer create-project ledccn/iyuuautoreseed:dev-master

View File

@@ -1,5 +0,0 @@
@echo off
chcp 65001
git clone https://gitee.com/ledc/IYUUAutoReseed.git
cd IYUUAutoReseed
php ./iyuu.php

View File

@@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed class AutoReseed
{ {
// 版本号 // 版本号
const VER = '1.8.2'; const VER = '1.8.3';
// RPC连接 // RPC连接
private static $links = []; private static $links = [];
// 客户端配置 // 客户端配置
@@ -416,16 +416,6 @@ class AutoReseed
$reseedPass = false; $reseedPass = false;
// 特殊站点:种子元数据推送给下载器 // 特殊站点:种子元数据推送给下载器
switch ($siteName) { switch ($siteName) {
case 'ssd':
// 辅种计数器
if ( isset($configALL[$siteName]['count']) ) {
if ( $configALL[$siteName]['count'] > 10) {
$configALL[$siteName]['limit'] = 1;
}
} else {
$configALL[$siteName]['count'] = 0;
}
break;
case 'hdchina': case 'hdchina':
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : ''; $cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
$userAgent = $configALL['default']['userAgent']; $userAgent = $configALL['default']['userAgent'];
@@ -539,12 +529,6 @@ class AutoReseed
case 'hdcity': case 'hdcity':
$url = $_url; $url = $_url;
break; break;
case 'ssd':
// 辅种计数器
if ($ret) {
$configALL[$siteName]['count']++;
}
break;
default: default:
break; break;
} }