种豆得豆调整一下收取好友营养液的策略,在20点的时候,只需满足好友的数量达到2瓶即去收取,其他时间满足3瓶
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
种豆得豆 脚本更新地址:https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_plantBean.js
|
种豆得豆 脚本更新地址:https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_plantBean.js
|
||||||
更新时间:2020-11-04
|
更新时间:2020-12-31
|
||||||
已支持IOS京东双账号,云端N个京东账号
|
已支持IOS京东双账号,云端N个京东账号
|
||||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||||
注:会自动关注任务中的店铺跟商品,介意者勿使用。
|
注:会自动关注任务中的店铺跟商品,介意者勿使用。
|
||||||
@@ -161,7 +161,19 @@ async function stealFriendWater() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ($.stealFriendList.data && $.stealFriendList.data.friendInfoList && $.stealFriendList.data.friendInfoList.length > 0) {
|
if ($.stealFriendList.data && $.stealFriendList.data.friendInfoList && $.stealFriendList.data.friendInfoList.length > 0) {
|
||||||
|
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||||
for (let item of $.stealFriendList.data.friendInfoList) {
|
for (let item of $.stealFriendList.data.friendInfoList) {
|
||||||
|
if (new Date(nowTimes).getHours() === 20) {
|
||||||
|
if (item.nutrCount >= 2) {
|
||||||
|
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
||||||
|
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
||||||
|
await collectUserNutr(item.paradiseUuid);
|
||||||
|
console.log(`偷取好友营养液情况:${JSON.stringify($.stealFriendRes)}`)
|
||||||
|
if ($.stealFriendRes.code === '0') {
|
||||||
|
console.log(`偷取好友营养液成功`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (item.nutrCount >= 3) {
|
if (item.nutrCount >= 3) {
|
||||||
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
||||||
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
||||||
@@ -174,6 +186,7 @@ async function stealFriendWater() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
async function doEgg() {
|
async function doEgg() {
|
||||||
await egg();
|
await egg();
|
||||||
|
Reference in New Issue
Block a user