-
-
{{# } }}
{{# 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