update jd_necklace.js ,云端多账号内容全集中到一次通知,注:部分推送方式可能会对内容有长度限制可能会导致推送失败或者推送内容不完整
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*
|
||||
东东超市兑换奖品 脚本地址:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_blueCoin.js
|
||||
感谢@yangtingxiao提供PR
|
||||
更新时间:2020-12-24
|
||||
更新时间:2021-2-27
|
||||
活动入口:京东APP我的-更多工具-东东超市
|
||||
支持京东多个账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
|
@ -2,7 +2,7 @@
|
||||
jd宠汪汪 搬的https://github.com/uniqueque/QuantumultX/blob/4c1572d93d4d4f883f483f907120a75d925a693e/Script/jd_joy.js
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
IOS用户支持京东双账号,NodeJs用户支持N个京东账号
|
||||
更新时间:2021-2-20
|
||||
更新时间:2021-2-27
|
||||
活动入口:京东APP我的-更多工具-宠汪汪
|
||||
建议先凌晨0点运行jd_joy.js脚本获取狗粮后,再运行此脚本(jd_joy_steal.js)可偷好友积分,6点运行可偷好友狗粮
|
||||
feedCount:自定义 每次喂养数量; 等级只和喂养次数有关,与数量无关
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: LXK9301 https://github.com/LXK9301
|
||||
* @Date: 2020-11-20 11:42:03
|
||||
* @Last Modified by: LXK9301
|
||||
* @Last Modified time: 2021-2-26 12:27:14
|
||||
* @Last Modified time: 2021-2-27 12:27:14
|
||||
*/
|
||||
/*
|
||||
点点券,可以兑换无门槛红包(1元,5元,10元,100元,部分红包需抢购)
|
||||
@ -26,7 +26,7 @@ cron "10 0,20 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master
|
||||
点点券 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_necklace.js, cronexpr="10 0,20 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('点点券');
|
||||
|
||||
let allMessage = ``;
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
@ -70,6 +70,9 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
await jd_necklace();
|
||||
}
|
||||
}
|
||||
if ($.isNode() && allMessage) {
|
||||
await notify.sendNotify(`${$.name}`, `${allMessage}`, { url: openUrl })
|
||||
}
|
||||
})()
|
||||
.catch((e) => {
|
||||
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
|
||||
@ -94,7 +97,10 @@ function showMsg() {
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n当前${$.name}:${$.totalScore}个\n可兑换无门槛红包:${$.totalScore / 1000}元\n点击弹窗即可去兑换(注:此红包具有时效性)`, { 'open-url': openUrl});
|
||||
}
|
||||
// 云端大于10元无门槛红包时进行通知推送
|
||||
if ($.isNode() && $.totalScore >= 20000 && nowTimes.getHours() >= 20) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index} ${$.nickName}\n当前${$.name}:${$.totalScore}个\n可兑换无门槛红包:${$.totalScore / 1000}元\n点击链接即可去兑换(注:此红包具有时效性)\n↓↓↓ \n\n ${openUrl} \n\n ↑↑↑`, { url: openUrl })
|
||||
// if ($.isNode() && $.totalScore >= 20000 && nowTimes.getHours() >= 20) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index} ${$.nickName}\n当前${$.name}:${$.totalScore}个\n可兑换无门槛红包:${$.totalScore / 1000}元\n点击链接即可去兑换(注:此红包具有时效性)\n↓↓↓ \n\n ${openUrl} \n\n ↑↑↑`, { url: openUrl })
|
||||
if ($.isNode() && $.totalScore >= 20000 && nowTimes.getHours() >= 20) {
|
||||
allMessage += `京东账号${$.index} ${$.nickName}\n当前${$.name}:${$.totalScore}个\n可兑换无门槛红包:${$.totalScore / 1000}元\n点击链接即可去兑换(注:此红包具有时效性)${$.index !== cookiesArr.length ? '\n\n' : '\n↓↓↓ \n\n ${openUrl} \n\n ↑↑↑'}`
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
种豆得豆 脚本更新地址:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_plantBean.js
|
||||
更新时间:2021-1-16
|
||||
更新时间:2021-2-27
|
||||
活动入口:京东APP我的-更多工具-种豆得豆
|
||||
已支持IOS京东双账号,云端N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
|
@ -9,7 +9,7 @@ const $ = new Env();
|
||||
// =======================================微信server酱通知设置区域===========================================
|
||||
//此处填你申请的SCKEY.
|
||||
//(环境变量名 PUSH_KEY)
|
||||
let SCKEY = 'SCU53275T2fe6408e167489ceff1afd3127f176235fb8c709d3d01';
|
||||
let SCKEY = '';
|
||||
|
||||
// =======================================Bark App通知设置区域===========================================
|
||||
//此处填你BarkAPP的信息(IP/设备码,例如:https://api.day.app/XXXXXXXX)
|
||||
|
Reference in New Issue
Block a user