调整年兽活动2.4日可兑换红包时的通知频率
This commit is contained in:
10
jd_nian.js
10
jd_nian.js
@@ -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`)
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
Reference in New Issue
Block a user