企鹅阅读添加推送通知(每天晚上22点 0分到22:20分之间运行的时候, 会发送通知),自用
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user