From 22c56d145262d187b9e9f551713e9fae0152bb23 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Sat, 27 Feb 2021 16:15:37 +0800 Subject: [PATCH] =?UTF-8?q?update=20jd=5Fjxnc.js=20,=E4=BA=91=E7=AB=AF?= =?UTF-8?q?=E5=A4=9A=E8=B4=A6=E5=8F=B7=E5=86=85=E5=AE=B9=E5=85=A8=E9=9B=86?= =?UTF-8?q?=E4=B8=AD=E5=88=B0=E4=B8=80=E6=AC=A1=E9=80=9A=E7=9F=A5,?= =?UTF-8?q?=E6=B3=A8:=E9=83=A8=E5=88=86=E6=8E=A8=E9=80=81=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=9C=89=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=8E=A8=E9=80=81=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=88=96=E8=80=85=E6=8E=A8=E9=80=81=E5=86=85=E5=AE=B9=E4=B8=8D?= =?UTF-8?q?=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_jxnc.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jd_jxnc.js b/jd_jxnc.js index 5abaac97..154bd9d8 100644 --- a/jd_jxnc.js +++ b/jd_jxnc.js @@ -52,7 +52,7 @@ let currentShareCode = []; // 当前用户 要助力的助力码 const openUrl = `openjd://virtual?params=${encodeURIComponent('{ "category": "jump", "des": "m", "url": "https://wqsh.jd.com/sns/201912/12/jxnc/detail.html?ptag=7155.9.32&smp=b47f4790d7b2a024e75279f55f6249b9&active=jdnc_1_chelizi1205_2"}',)}`; // 打开京喜农场 let subTitle = '', message = '', option = {'open-url': openUrl}; // 消息副标题,消息正文,消息扩展参数 const JXNC_API_HOST = 'https://wq.jd.com/'; - +let allMessage = ''; $.detail = []; // 今日明细列表 $.helpTask = null; $.allTask = []; // 任务列表 @@ -98,6 +98,9 @@ let assistUserShareCode = 0; // 随机助力用户 share code await jdJXNC(); // 执行当前账号 主代码流程 } } + if ($.isNode() && allMessage) { + await notify.sendNotify(`${$.name}`, `${allMessage}`) + } })() .catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') @@ -664,7 +667,8 @@ async function showMsg() { if (notifyBool) { $.msg($.name, subTitle, message, option); if ($.isNode()) { - await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); + // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); + allMessage += `${subTitle}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}` } } else { $.log(`${$.name} - notify 通知已关闭\n账号${$.index} - ${$.nickName}\n${subTitle}\n${message}`);