Revert "fix(qdreader): split archive and sign cron plugins"

This reverts commit 2413bd5b12.
This commit is contained in:
2026-05-20 12:16:36 +08:00
parent 2413bd5b12
commit d09073c33c
8 changed files with 23 additions and 1668 deletions
+6 -7
View File
@@ -4,17 +4,17 @@
//[author: Hermes]
//[service: BOSS]
//[class: 工具类]
//[version: 2.5.6]
//[version: 2.5.5]
//[platform: web,qq,wx,tg,tb,fs,we]
//[public: false]
//[price: 0]
//[disable: false]
//[description: 启点读书(QDReader) Autman 签到插件:保存 QX 抓到的 H5 Cookie,支持手动“启点签到”;定时签到使用独立 cron `1 7 * * *`;日志归档由 `qdreader_archive_autman.js` 独立 cron `1 0 * * *` 执行,避免 Autman 对逗号 hour cron 兼容不一致导致定时不触发;带独立 bucket、多用户隔离、请求重试、签名响应解析、结果摘要和安全脱敏。]
//[description: 启点读书(QDReader) Autman 签到插件:保存 QX 抓到的 H5 Cookie,支持手动“启点签到”;定时使用 `1 0,7 * * *`,每日 00:01 归档并清空日志、每日 07:01 签到;带独立 bucket、多用户隔离、请求重试、签名响应解析、结果摘要和安全脱敏。]
//[rule: ^启点(账号|查询|ck|CK|cookie|Cookie|签到|读书|归档|日志归档)(.*)$]
//[rule: ^qdreader(.*)$]
//[admin: true]
//[priority: 600]
//[cron: 1 7 * * *]
//[cron: 1 0,7 * * *]
var BUCKET = "hermes_qidian"
@@ -260,7 +260,7 @@ function contentText() {
}
function usage() {
return [
"启点读书签到插件 v2.5.6",
"启点读书签到插件 v2.5.5",
"【一级菜单】",
"账号管理:启点账号",
"执行查询:启点查询",
@@ -454,9 +454,8 @@ function latestArchiveForVisible(uids) {
function cronMode() {
var d = new Date()
var h = d.getHours ? d.getHours() : 7
// Compatibility fallback: the sign plugin is scheduled at 07:01 only.
// If Autman manually/debug-runs this file around 00:xx, keep archive-only behavior.
// The normal midnight archive is handled by qdreader_archive_autman.js with cron 1 0 * * *.
// Single cron: 1 0,7 * * *
// 00:01 system run archives only; 07:01 system run signs only.
if (h === 0) return "archive"
return "sign"
}