From 54154de88a524e561586d111ba3cfe96f46e770c Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Wed, 3 Feb 2021 17:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B9=B4=E5=85=BD=E6=B4=BB?= =?UTF-8?q?=E5=8A=A82.4=E6=97=A5=E5=8F=AF=E5=85=91=E6=8D=A2=E7=BA=A2?= =?UTF-8?q?=E5=8C=85=E6=97=B6=E7=9A=84=E9=80=9A=E7=9F=A5=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_nian.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/jd_nian.js b/jd_nian.js index 0a9a0733..71a7f94b 100644 --- a/jd_nian.js +++ b/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) { - $.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() === 10 || nowTimes.getHours() === 19) { + $.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) { - $.msg($.name, '', '年终奖红包已可兑换\n点击弹窗直达', { 'open-url' : openUrl}) + if (nowTimes.getHours() === 20 && nowTimes.getDate() === 4) { + $.msg($.name, '', '年终奖红包已可兑换\n点击弹窗直达兑换页面', { 'open-url' : openUrl}) if ($.isNode()) await notify.sendNotify($.name, `年终奖红包已可兑换\n兑换地址: https://wbbny.m.jd.com/babelDiy/Zeus/2cKMj86srRdhgWcKonfExzK4ZMBy/index.html`) } })()