fix(qdreader): harden cron trigger detection

This commit is contained in:
2026-05-22 21:14:36 +08:00
parent aae3fc2ba2
commit a7792012a1
4 changed files with 66 additions and 36 deletions
+21 -18
View File
@@ -4,17 +4,17 @@
//[author: Hermes]
//[service: BOSS]
//[class: 工具类]
//[version: 2.11.1]
//[platform: web,qq,wx,tg,tb,fs,we]
//[public: false]
//[price: 0]
//[disable: false]
//[description: 启点读书(QDReader) Autman 签到插件:保存 QX 抓到的 H5 Cookie,支持手动“启点签到”;定时使用 `1 7 * * *` 每日 07:01 签到;完全体可选任务按上游原项目解密流程执行;每次签到运行结束后立即归档并清空最近运行日志,不再依赖单独归档定时;带独立 bucket、多用户隔离、请求重试、签名响应解析、结果摘要和安全脱敏。]
//[rule: ^启点(账号|查询|ck|CK|cookie|Cookie|签到|读书|归档|日志归档)(.*)$]
//[rule: ^qdreader(.*)$]
//[admin: true]
//[priority: 600]
//[cron: 1 7 * * *]
// [version: 2.12.0]
// [platform: web,qq,wx,tg,tb,fs,we]
// [public: false]
// [price: 0]
// [disable: false]
// [description: 启点读书(QDReader) Autman 签到插件:保存 QX 抓到的 H5 Cookie,支持手动“启点签到”;定时使用 `1 7 * * *` 每日 07:01 签到;完全体可选任务按上游原项目解密流程执行;每次签到运行结束后立即归档并清空最近运行日志,不再依赖单独归档定时;带独立 bucket、多用户隔离、请求重试、签名响应解析、结果摘要和安全脱敏。]
// [rule: ^启点(账号|查询|ck|CK|cookie|Cookie|签到|读书|归档|日志归档)(.*)$]
// [rule: ^qdreader(.*)$]
// [admin: true]
// [priority: 600]
// [cron: 1 7 * * *]
var BUCKET = "hermes_qidian"
@@ -266,17 +266,20 @@ function maskUid(uid) {
function contentText() {
var s = ""
try { if (typeof getContent === "function") s = getContent() || "" } catch (e) {}
try { if (!s && typeof GetContent === "function") s = GetContent() || "" } catch (e) {}
try { if (!s && typeof input === "function") s = input() || "" } catch (e) {}
try { if (!s && typeof sender !== "undefined" && sender && sender.getContent) s = sender.getContent() || "" } catch (e) {}
try { if (!s && typeof sender !== "undefined" && sender && sender.getMessage) s = sender.getMessage() || "" } catch (e) {}
try { if (!s && typeof message !== "undefined") s = String(message) } catch (e) {}
var im = ""
try { if (typeof ImType === "function") im = ImType() || "" } catch (e) {}
try { if (!im && typeof GetImType === "function") im = GetImType() || "" } catch (e2) {}
if (lower(trim(im)) === "cron") return ""
try { if (typeof getContent === "function") s = getContent() || "" } catch (e3) {}
try { if (!s && typeof GetContent === "function") s = GetContent() || "" } catch (e4) {}
try { if (!s && typeof sender !== "undefined" && sender && sender.getContent) s = sender.getContent() || "" } catch (e5) {}
try { if (!s && typeof sender !== "undefined" && sender && sender.getMessage) s = sender.getMessage() || "" } catch (e6) {}
try { if (!s && typeof message !== "undefined") s = String(message) } catch (e7) {}
return trim(s)
}
function usage() {
return [
"启点读书签到插件 v2.11.0",
"启点读书签到插件 v2.12.0",
"【一级菜单】",
"账号管理:启点账号",
"执行查询:启点查询",