fix(qdreader): harden midnight cron dispatch
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//[author: Hermes]
|
||||
//[service: BOSS]
|
||||
//[class: 工具类]
|
||||
//[version: 2.5.2]
|
||||
//[version: 2.5.3]
|
||||
//[platform: web,qq,wx,tg,tb,fs,we]
|
||||
//[public: false]
|
||||
//[price: 0]
|
||||
@@ -261,7 +261,7 @@ function contentText() {
|
||||
}
|
||||
function usage() {
|
||||
return [
|
||||
"启点读书签到插件 v2.5.2",
|
||||
"启点读书签到插件 v2.5.3",
|
||||
"【一级菜单】",
|
||||
"账号管理:启点账号",
|
||||
"执行查询:启点查询",
|
||||
@@ -455,8 +455,9 @@ function latestArchiveForVisible(uids) {
|
||||
function cronMode() {
|
||||
var d = new Date()
|
||||
var h = d.getHours ? d.getHours() : 7
|
||||
var m = d.getMinutes ? d.getMinutes() : 15
|
||||
if (h === 0 && m < 10) return "archive"
|
||||
// Autman cron can be delayed by scheduler/load; any system-triggered run during 00:00-00:59 is treated as archive-only.
|
||||
// This avoids a dangerous midnight sign if the 00:00 archive cron is not executed exactly at minute 0.
|
||||
if (h === 0) return "archive"
|
||||
return "sign"
|
||||
}
|
||||
function formatArchiveReply(ret) {
|
||||
|
||||
Reference in New Issue
Block a user