diff --git a/app/functions.php b/app/functions.php index 1a9e118..dff9beb 100644 --- a/app/functions.php +++ b/app/functions.php @@ -13,7 +13,7 @@ use app\domain\Config as domainConfig; */ function IYUU_VERSION(): string { - return '2.1.2'; + return '2.1.3'; } /** diff --git a/public/page/setting/sites.html b/public/page/setting/sites.html index 54eb37c..ddcaf4b 100644 --- a/public/page/setting/sites.html +++ b/public/page/setting/sites.html @@ -120,19 +120,19 @@ {{# } }} {{# if (d.limitRule === true) { }}
-
- -
- + +
+
+
+ +
+
+ +
+ 每运行一次最多添加{单次辅种数}个种子,每添加一个种子需等待{间隔时间}秒。为账号安全,每次运行辅种的时候,超过流控限制,会在下次运行辅种的时候,继续添加辅种。
-
-
- -
-
每运行一次最多添加{单次辅种数}个种子,每添加一个种子需等待{间隔时间}秒。为账号安全,每次运行辅种的时候,超过流控限制,会在下次运行辅种的时候,继续添加辅种。
-
- +
{{# } }} {{# if (d.urlJoin.visible === true) { }} @@ -222,8 +222,13 @@ case 'm-team': rule.urlJoin.visible = true; break; - //Cookie必须 + case 'gainbound': + //Cookie必须 + rule.cookie.required = true; + rule.cookie.verify = 'required'; + break; case 'hdcity': + //Cookie必须 rule.cookie.required = true; rule.cookie.verify = 'required'; rule.passkey.required = false; diff --git a/src/Reseed/AutoReseed.php b/src/Reseed/AutoReseed.php index 3bd2b18..0332a0a 100644 --- a/src/Reseed/AutoReseed.php +++ b/src/Reseed/AutoReseed.php @@ -216,16 +216,9 @@ class AutoReseed $data = time() . ',' . $pid; file_put_contents(self::$pid_file, $data); - //lock文件 - $lockFile = domainCrontab::getLockFile($cron_name); - //TODO.. 本次执行检查锁,避免系统资源耗尽 - file_put_contents($lockFile, $data); - - //注册一个会在php中止时执行的函数,删除pid、删除锁文件 - register_shutdown_function(function () use (&$cron_name) { + //注册一个会在php中止时执行的函数,删除pid + register_shutdown_function(function () { self::deletePid(); - $lockFile = domainCrontab::getLockFile($cron_name); - is_file($lockFile) and unlink($lockFile); }); } diff --git a/todo.md b/todo.md index cba70e2..aa098d8 100644 --- a/todo.md +++ b/todo.md @@ -5,19 +5,20 @@ - [x] 一键清理转移缓存 - [x] 任务热刷新 - [x] [站点设置]已添加的,屏蔽选择 -- [ ] 前端实时显示任务运行状态(Ajax) - [x] 一键更新到最新版 - [x] 跨平台的配置导入导出(任务热刷新) - [x] 分批次请求辅种,解决客户端做种多辅种失败的问题(有的客户端内做种60000个) - [x] 增加开关,未配置的站点不显示日志 - [x] 开启关闭计划任务 -- [ ] 停止执行中的计划任务 - [x] 及时清理log(减少空间占用) - [x] 支持用户定义辅种代理服务器 -- [ ] 增加微信通知使能开关:控制下载任务的微信通知 -- [ ] 旧版配置一键导入 +- [x] 增加微信通知使能开关:控制下载任务的微信通知 - [x] 辅种任务自动校验 -- [ ] 辅种任务自动开始做种 +- [x] 辅种任务自动开始做种 +- [ ] 一键导入PT助手的cookie配置 +- [ ] 停止执行中的计划任务 +- [ ] 前端实时显示任务运行状态(Ajax) - [ ] 替换tracker - [ ] 检查做种任务与数据对应关系 -- [ ] 优化日志显示方式(倒数200行,Ajax刷新) \ No newline at end of file +- [ ] 增量更新漏掉的种子 +- [ ] 自动验证站点已删除的种子 \ No newline at end of file