调整年兽活动2.4日可兑换红包时的通知频率

This commit is contained in:
lxk0301
2021-02-03 17:45:53 +08:00
parent 200c473dd2
commit 54154de88a

View File

@@ -107,11 +107,13 @@ const openUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%
} }
} }
if ((nowTimes.getHours() < 20 && nowTimes.getHours() >= 10) && nowTimes.getDate() === 4) { if ((nowTimes.getHours() < 20 && nowTimes.getHours() >= 10) && nowTimes.getDate() === 4) {
$.msg($.name, '', '队伍红包已可兑换\n点击弹窗直达', { 'open-url' : openUrl}); if (nowTimes.getHours() === 10 || nowTimes.getHours() === 19) {
if ($.isNode()) await notify.sendNotify($.name, `队伍红包已可兑换\n兑换地址: https://wbbny.m.jd.com/babelDiy/Zeus/2cKMj86srRdhgWcKonfExzK4ZMBy/index.html`) $.msg($.name, '', '队伍红包已可兑换\n点击弹窗直达兑换页面', { 'open-url' : openUrl});
if ($.isNode()) await notify.sendNotify($.name, `队伍红包已可兑换\n兑换地址: https://wbbny.m.jd.com/babelDiy/Zeus/2cKMj86srRdhgWcKonfExzK4ZMBy/index.html`)
}
} }
if (nowTimes.getHours() >= 20 && nowTimes.getDate() === 4) { if (nowTimes.getHours() === 20 && nowTimes.getDate() === 4) {
$.msg($.name, '', '年终奖红包已可兑换\n点击弹窗直达', { 'open-url' : openUrl}) $.msg($.name, '', '年终奖红包已可兑换\n点击弹窗直达兑换页面', { 'open-url' : openUrl})
if ($.isNode()) await notify.sendNotify($.name, `年终奖红包已可兑换\n兑换地址: https://wbbny.m.jd.com/babelDiy/Zeus/2cKMj86srRdhgWcKonfExzK4ZMBy/index.html`) if ($.isNode()) await notify.sendNotify($.name, `年终奖红包已可兑换\n兑换地址: https://wbbny.m.jd.com/babelDiy/Zeus/2cKMj86srRdhgWcKonfExzK4ZMBy/index.html`)
} }
})() })()