From 87f06ec5c4078fbd6d6ca3460946680a2c69a5a0 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Sun, 12 Jul 2020 19:38:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9F=9F=E5=90=8D=E9=83=A8?= =?UTF-8?q?=E7=BD=B2SSL=E8=AF=81=E4=B9=A6=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=8F=8C=E5=8D=8F=E8=AE=AEhttp/https=E3=80=82=E5=A6=82?= =?UTF-8?q?=EF=BC=9Ahttps://api.iyuu.cn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AutoReseed.php | 8 ++++---- wiki/公告栏.md | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/app/AutoReseed.php b/app/AutoReseed.php index 9659e8b..91408dc 100644 --- a/app/AutoReseed.php +++ b/app/AutoReseed.php @@ -277,7 +277,7 @@ class AutoReseed // 支持站点数量 self::$wechatMsg['sitesCount'] = count(self::$sites); $sites = self::$sites; - // 按客户端循环辅种 开始 + // 遍历客户端 开始 foreach (self::$links as $k => $v) { if (empty($v)) { echo "clients_".$k." 用户名或密码未配置,已跳过".PHP_EOL.PHP_EOL; @@ -331,7 +331,7 @@ class AutoReseed echo '-----辅种失败,原因:' .$errmsg.PHP_EOL.PHP_EOL; continue; } - // 当前客户端可辅种数据 + // 遍历当前客户端可辅种数据 foreach ($reseed as $info_hash => $vv) { // 当前种子哈希对应的目录 $downloadDir = $infohash_Dir[$info_hash]; @@ -556,6 +556,7 @@ class AutoReseed private static function move() { global $configALL; + //遍历客户端 foreach (self::$links as $k => $v) { if (self::$move[0] == $k) { echo "clients_".$k."是目标转移客户端,避免冲突,已跳过!".PHP_EOL.PHP_EOL; @@ -578,7 +579,7 @@ class AutoReseed echo "clients_".$k." 全部转移成功,本次无需转移!".PHP_EOL.PHP_EOL; continue; } - // 循环转移做种客户端 + //遍历当前客户端种子 foreach ($infohash_Dir as $info_hash => $downloadDir) { // 调用路径过滤 if (self::pathFilter($downloadDir)) { @@ -586,7 +587,6 @@ class AutoReseed } // 做种实际路径与相对路径之间互转 echo '转换前:'.$downloadDir.PHP_EOL; - // 调用路径转换 $downloadDir = self::pathReplace($downloadDir); echo '转换后:'.$downloadDir.PHP_EOL; if (is_null($downloadDir)) { diff --git a/wiki/公告栏.md b/wiki/公告栏.md index e4a4e9c..76a6ba6 100644 --- a/wiki/公告栏.md +++ b/wiki/公告栏.md @@ -1,5 +1,19 @@ # 公告栏 +### 2020年7月12日19:34:03 + +【新增功能】v1.9.0 +转移过滤器、选择器;可以只转移指定路径的种子,也可以排除指定路径的种子,按需转移。 +【升级方法】 +1.主脚本可以通过git pull,或覆盖更新; +2.然后对照最新config.sample.php,把59行,60行,手动加入到你的config.php对应位置。 + +【重要提醒】域名部署SSL证书,接口域名支持双协议访问http/https,如下: + +https://api.iyuu.cn + +http://api.iyuu.cn + ### 2020年4月10日17:43:50 针对多合作站点绑定的优化!