From a51e4dd593d680e09c0d873ef6c1e2baa7165bfc Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Sat, 27 Feb 2021 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?update=20jd=5Ffruit.js&jd=5Fpet.js&jd=5Fjoy=5Fr?= =?UTF-8?q?eward.js=20,=E4=BA=91=E7=AB=AF=E5=A4=9A=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=85=A8=E9=9B=86=E4=B8=AD=E5=88=B0=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E9=80=9A=E7=9F=A5,=E6=B3=A8:=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=96=B9=E5=BC=8F=E5=8F=AF=E8=83=BD=E4=BC=9A?= =?UTF-8?q?=E5=AF=B9=E5=86=85=E5=AE=B9=E6=9C=89=E9=95=BF=E5=BA=A6=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E5=A4=B1=E8=B4=A5=E6=88=96=E8=80=85=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=8D=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_fruit.js | 10 +++++++--- jd_joy_reward.js | 9 +++++++-- jd_jxnc.js | 2 +- jd_pet.js | 10 +++++++--- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/jd_fruit.js b/jd_fruit.js index 675bf62c..9d8eb659 100644 --- a/jd_fruit.js +++ b/jd_fruit.js @@ -1,6 +1,6 @@ /* 东东水果:脚本更新地址 https://gitee.com/lxk0301/jd_scripts/raw/master/jd_fruit.js -更新时间:2021-2-19 +更新时间:2021-2-27 活动入口:京东APP我的-更多工具-东东农场 东东农场活动链接:https://h5.m.jd.com/babelDiy/Zeus/3KSjXqQabiTuD1cJ28QskrpWoBKT/index.html 已支持IOS双京东账号,Node.js支持N个京东账号 @@ -24,7 +24,7 @@ cron "5 6-18/6 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/maste jd免费水果 搬的https://github.com/liuxiaoyucc/jd-helper/blob/a6f275d9785748014fc6cca821e58427162e9336/fruit/fruit.js */ const $ = new Env('东东农场'); -let cookiesArr = [], cookie = '', jdFruitShareArr = [], isBox = false, notify, newShareCodes; +let cookiesArr = [], cookie = '', jdFruitShareArr = [], isBox = false, notify, newShareCodes, allMessage = ''; //助力好友分享码(最多3个,否则后面的助力失败),原因:京东农场每人每天只有3次助力机会 //此此内容是IOS用户下载脚本到本地使用,填写互助码的地方,同一京东账号的好友互助码请使用@符号隔开。 //下面给出两个账号的填写示例(iOS只支持2个京东账号) @@ -71,6 +71,9 @@ const urlSchema = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%2 await jdFruit(); } } + if ($.isNode() && allMessage && ctrTemp) { + await notify.sendNotify(`${$.name}`, `${allMessage}`) + } })() .catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') @@ -1229,7 +1232,8 @@ async function showMsg() { if (ctrTemp) { $.msg($.name, subTitle, message, option); if ($.isNode()) { - await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); + allMessage += `${subTitle}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}`; + // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); } } else { $.log(`\n${message}\n`); diff --git a/jd_joy_reward.js b/jd_joy_reward.js index ba6c9db3..08b40bd9 100644 --- a/jd_joy_reward.js +++ b/jd_joy_reward.js @@ -2,7 +2,7 @@ * @Author: lxk0301 https://github.com/lxk0301 * @Date: 2020-08-16 18:54:16 * @Last Modified by: lxk0301 - * @Last Modified time: 2021-2-26 21:22:37 + * @Last Modified time: 2021-2-27 21:22:37 */ /* 宠汪汪积分兑换奖品脚本, 目前脚本只兑换京豆,兑换京豆成功,才会发出通知提示,其他情况不通知。 @@ -37,6 +37,7 @@ cron "0 0-16/8 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/maste }); const $ = new Env('宠汪汪积分兑换奖品'); +let allMessage = ''; let joyRewardName = 20;//是否兑换京豆,默认开启兑换功能,其中20为兑换20京豆,500为兑换500京豆,0为不兑换京豆.数量有限先到先得 //Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; @@ -80,6 +81,9 @@ const JD_API_HOST = 'https://jdjoy.jd.com'; // $.msg($.name, '兑换脚本暂不能使用', `请停止使用,等待后期更新\n如果新版本兑换您有兑换机会,请抓包兑换\n再把抓包数据发送telegram用户@LXK9301`); } } + if ($.isNode() && allMessage && ctrTemp) { + await notify.sendNotify(`${$.name}`, `${allMessage}`) + } })() .catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') @@ -145,7 +149,8 @@ async function joyReward() { if (ctrTemp) { $.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`); if ($.isNode()) { - await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】 ${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`); + allMessage += `【京东账号${$.index}】 ${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}${$.index !== cookiesArr.length ? '\n\n' : ''}` + // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】 ${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`); } } // if ($.isNode()) { diff --git a/jd_jxnc.js b/jd_jxnc.js index 154bd9d8..e41cab4d 100644 --- a/jd_jxnc.js +++ b/jd_jxnc.js @@ -4,7 +4,7 @@ 感谢 @whyour 大佬 京喜农场:脚本更新地址 https://gitee.com/lxk0301/jd_scripts/raw/master/jd_jxnc.js -更新时间:2021-01-10 22:47:51 +更新时间:2021-02-27 16:17:51 活动入口:京喜APP我的-京喜农场 东东农场活动链接:https://wqsh.jd.com/sns/201912/12/jxnc/detail.html?ptag=7155.9.32&smp=b47f4790d7b2a024e75279f55f6249b9&active=jdnc_1_chelizi1205_2 已支持IOS双京东账号,Node.js支持N个京东账号 diff --git a/jd_pet.js b/jd_pet.js index 9d46e02b..dbaa69be 100644 --- a/jd_pet.js +++ b/jd_pet.js @@ -1,6 +1,6 @@ /* 东东萌宠 更新地址: https://gitee.com/lxk0301/jd_scripts/raw/master/jd_pet.js -更新时间:2021-01-19 +更新时间:2021-02-27 活动入口:京东APP我的-更多工具-东东萌宠 已支持IOS双京东账号,Node.js支持N个京东账号 脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js @@ -25,7 +25,7 @@ cron "15 6-18/6 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/mast */ const $ = new Env('东东萌宠'); -let cookiesArr = [], cookie = '', jdPetShareArr = [], isBox = false, notify, newShareCodes; +let cookiesArr = [], cookie = '', jdPetShareArr = [], isBox = false, notify, newShareCodes, allMessage = ''; //助力好友分享码(最多5个,否则后面的助力失败),原因:京东农场每人每天只有四次助力机会 //此此内容是IOS用户下载脚本到本地使用,填写互助码的地方,同一京东账号的好友互助码请使用@符号隔开。 //下面给出两个账号的填写示例(iOS只支持2个京东账号) @@ -72,6 +72,9 @@ let randomCount = $.isNode() ? 20 : 5; await jdPet(); } } + if ($.isNode() && allMessage && ctrTemp) { + await notify.sendNotify(`${$.name}`, `${allMessage}`) + } })() .catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') @@ -438,7 +441,8 @@ async function showMsg() { if (ctrTemp) { $.msg($.name, subTitle, message, option); if ($.isNode()) { - await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); + allMessage += `${subTitle}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}` + // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); } } else { $.log(`\n${message}\n`);