From f543e365de2a5ae72f1b94dfaa72556e88dd8fb5 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Mon, 21 Dec 2020 18:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E9=B9=85=E9=98=85=E8=AF=BB=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8E=A8=E9=80=81=E9=80=9A=E7=9F=A5=EF=BC=88=E6=AF=8F?= =?UTF-8?q?=E5=A4=A9=E6=99=9A=E4=B8=8A22=E7=82=B9=200=E5=88=86=E5=88=B022:?= =?UTF-8?q?20=E5=88=86=E4=B9=8B=E9=97=B4=E8=BF=90=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=20=E4=BC=9A=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=EF=BC=89=EF=BC=8C=E8=87=AA=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backUp/qqread.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/backUp/qqread.js b/backUp/qqread.js index 0c5903ca..e2db6bd6 100644 --- a/backUp/qqread.js +++ b/backUp/qqread.js @@ -62,7 +62,7 @@ const jsname = '企鹅读书' const $ = Env(jsname) let task = '', config, ssr2 = '', wktime, day = 0; console.log(`\n========= 脚本执行时间(TM):${new Date(new Date().getTime() + 0 * 60 * 60 * 1000).toLocaleString('zh', {hour12: false})} =========\n`) - +const notify = require('../sendNotify'); const logs = 1; //0为关闭日志,1为开启 const TIME = 30//单次时长上传限制,默认5分钟 @@ -233,7 +233,14 @@ async function QQ_READ() { } } function showmsg() { - $.msg(jsname, "", tz); // 宝箱每15次通知一次 + return new Promise(async resolve => { + let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000); + if (nowTimes.getHours() === 22 && (nowTimes.getMinutes() >= 0 && nowTimes.getMinutes() <= 20)) { + await notify.sendNotify(jsname, tz); + } + $.msg(jsname, "", tz); + resolve() + }) } //提现 function qqreadwithdraw() {