This commit is contained in:
Faker 2022-04-13 12:52:44 +08:00
parent 6258569b8a
commit 78909a670f
3 changed files with 788 additions and 599 deletions

View File

@ -1,11 +1,13 @@
/*
整点京豆雨
更新时间2022-1-24
甘露殿-https://t.me/jdredrain
使用前自行设定整点京豆雨环境变量
export jd_redrain_url="https://gitee.com/msewb/update/raw/master/redrain.json"
更新时间2022-3-31
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
bymsechen
github:https://github.com/msechen/jdrain
频道:https://t.me/jdredrain
交流群组https://t.me/+xfWwiMAFonwzZDFl
==============Quantumult X==============
[task_local]
#整点京豆雨
@ -101,7 +103,7 @@ if ($.isNode()) {
}
}
if (allMessage) {
if ($.isNode()) await notify.sendNotify(`${$.name}`, `${allMessage}`);
if ($.isNode()) await notify.sendNotify(`${$.name}`, `${allMessage}\n甘露殿【https://t.me/jdredrain】`);
$.msg($.name, '', allMessage);
}
})()
@ -175,10 +177,17 @@ function doInteractiveAssignment(encryptProjectId, encryptAssignmentId) {
} else {
if (safeGet(data)) {
data = JSON.parse(data);
<<<<<<< HEAD
console.log(data);
if (data.subCode == "0") {
console.log(`${data.rewardsInfo.successRewards[3][0].quantity}京豆`);
allMessage += `京东账号${$.index}${$.nickName || $.UserName}\n领取成功,获得【${data.rewardsInfo.successRewards[3][0].quantity}】京豆${$.index !== cookiesArr.length ? '\n\n' : ''}`;
=======
if (data.subCode == "0") {
//console.log(`${data.rewardsInfo.successRewards[3][0].rewardName}`);
message += `领取成功,获得 ${data.rewardsInfo.successRewards[3][0].rewardName}`
allMessage += `京东账号${$.index}${$.nickName || $.UserName}\n领取成功,获得 ${data.rewardsInfo.successRewards[3][0].rewardName}${$.index !== cookiesArr.length ? '\n\n' : ''}`;
>>>>>>> 69e2454bc59e9c82e511b6f469b90a55e18e21fd
} else {
console.log(data);
}

File diff suppressed because one or more lines are too long

458
jd_share.js Normal file

File diff suppressed because one or more lines are too long