fix: remove qdreader message box time gate

This commit is contained in:
2026-05-22 19:10:43 +08:00
parent b7afbf421a
commit c7011a43ea
5 changed files with 13 additions and 15 deletions
+2 -4
View File
@@ -744,17 +744,15 @@ function recentCreateTime(v) {
return now - t >= 0 && now - t <= 24 * 60 * 60 * 1000
}
function beijingHour(dateLike) { return beijingDate(dateLike).getUTCHours() }
function messageBoxWindowLabel() { return "20:00-22:00" }
function messageBoxWindowLabel() { return "全天" }
function messageBoxAllowedNow() {
var h = beijingHour()
return h >= 20 && h < 22
return true
}
function orderIdFromText(s) {
var m = String(s || "").match(/orderId=([a-f0-9]+)/i)
return m ? m[1] : ""
}
function doMessageBox(cookie) {
if (!messageBoxAllowedNow()) return { name: "大咖荐书", ok: true, skipped: true, msg: "不在执行时间 " + messageBoxWindowLabel() + ",已跳过", path: "https://magev6.if.qidian.com/argus/api/v2/message/pullmessage" }
var token = messageTokenFromCookie(cookie)
if (!token) return { name: "大咖荐书", ok: true, msg: "缺少消息 token,已跳过", path: "https://magev6.if.qidian.com/argus/api/v2/message/pullmessage" }
var baseParams = { appappend: token, categoryIds: "0", pg: "1", pz: "10" }