mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
Merge branch 'chinnkarahoi:master' into master
This commit is contained in:
commit
b3d9394ef2
@ -115,7 +115,7 @@ cron "10 0-21/3 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/mast
|
||||
# 跳跳乐瓜分京豆
|
||||
cron "1 0,11,21 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_jump.js, tag=跳跳乐瓜分京豆
|
||||
|
||||
# jsjiami.com.v6
|
||||
# 京喜领88元红包
|
||||
cron "4 10 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_jxlhb.js,tag=京喜领88元红包
|
||||
|
||||
# 京喜农场
|
||||
|
||||
@ -302,7 +302,7 @@ function redPacket() {
|
||||
t.setHours(0, 0, 0, 0)
|
||||
t = parseInt((t - 1) / 1000)
|
||||
for (let vo of data.useRedInfo.redList || []) {
|
||||
if (vo.activityName.includes("京喜")) {
|
||||
if (vo.activityName.includes("京喜") || vo.activityName.includes("阶梯")) {
|
||||
$.jxRed += parseFloat(vo.balance)
|
||||
if (vo['endTime'] === t) {
|
||||
$.jxRedExpire += parseFloat(vo.balance)
|
||||
|
||||
@ -55,7 +55,8 @@ if ($.isNode()) {
|
||||
}
|
||||
//await deleteFile(JD_DailyBonusPath);//删除下载的JD_DailyBonus.js文件
|
||||
if ($.isNode() && allMessage && process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE === 'true') {
|
||||
await notify.sendNotify(`${$.name}`, `${allMessage}`)
|
||||
$.msg($.name, '', allMessage);
|
||||
await notify.sendNotify($.name, allMessage)
|
||||
}
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
|
||||
@ -57,7 +57,7 @@ const len = cookiesArr.length;
|
||||
}
|
||||
if (message) {
|
||||
$.msg($.name, '', message);
|
||||
if ($.isNode()) await notify.sendNotify($.name, message);
|
||||
//if ($.isNode()) await notify.sendNotify($.name, message);
|
||||
}
|
||||
})()
|
||||
.catch((e) => {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
东东超市兑换奖品 脚本地址:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_blueCoin.js
|
||||
感谢@yangtingxiao提供PR
|
||||
更新时间:2021-3-2
|
||||
更新时间:2021-6-7
|
||||
活动入口:京东APP我的-更多工具-东东超市
|
||||
支持京东多个账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
@ -97,45 +97,45 @@ const JD_API_HOST = `https://api.m.jd.com/api?appid=jdsupermarket`;
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done())
|
||||
async function PrizeIndex() {
|
||||
// await smtg_queryPrize();
|
||||
await smtg_queryPrize();
|
||||
// await smtg_materialPrizeIndex();//兑换酒类奖品,此兑换API与之前的兑换京豆类的不一致,故目前无法进行
|
||||
await Promise.all([
|
||||
smtg_queryPrize(),
|
||||
smtg_materialPrizeIndex()
|
||||
])
|
||||
const prizeList = [...$.queryPrizeData, ...$.materialPrizeIndex];
|
||||
// const prizeList = [...$.queryPrizeData];
|
||||
// await Promise.all([
|
||||
// smtg_queryPrize(),
|
||||
// smtg_materialPrizeIndex()
|
||||
// ])
|
||||
// const prizeList = [...$.queryPrizeData, ...$.materialPrizeIndex];
|
||||
const prizeList = [...$.queryPrizeData];
|
||||
if (prizeList && prizeList.length) {
|
||||
if (`${coinToBeans}` === '1000') {
|
||||
if (prizeList[1] && prizeList[1].beanType === 'BeanPackage') {
|
||||
console.log(`查询换${prizeList[1].title}ID成功,ID:${prizeList[1].prizeId}`)
|
||||
$.title = prizeList[1].title;
|
||||
$.blueCost = prizeList[1].blueCost;
|
||||
if (prizeList[0] && prizeList[0].type === 3) {
|
||||
console.log(`查询换${prizeList[0].name}ID成功,ID:${prizeList[0].prizeId}`)
|
||||
$.title = prizeList[0].name;
|
||||
$.blueCost = prizeList[0].cost;
|
||||
} else {
|
||||
console.log(`查询换1000京豆ID失败`)
|
||||
$.beanerr = `东哥今天不给换`;
|
||||
return ;
|
||||
}
|
||||
if (prizeList[1] && prizeList[1].inStock === 506) {
|
||||
if (prizeList[0] && prizeList[0].inStock === 506) {
|
||||
$.beanerr = `失败,1000京豆领光了,请明天再来`;
|
||||
return ;
|
||||
}
|
||||
if (prizeList[1] && prizeList[1].targetNum === prizeList[1] && prizeList[1].finishNum) {
|
||||
$.beanerr = `${prizeList[1].subTitle}`;
|
||||
if (prizeList[0] && prizeList[0].limit === prizeList[0] && prizeList[0].finished) {
|
||||
$.beanerr = `${prizeList[0].name}`;
|
||||
return ;
|
||||
}
|
||||
//兑换1000京豆
|
||||
if ($.totalBlue > $.blueCost) {
|
||||
await smtg_obtainPrize(prizeList[1].prizeId);
|
||||
await smtg_obtainPrize(prizeList[0].prizeId);
|
||||
} else {
|
||||
console.log(`兑换失败,您目前蓝币${$.totalBlue}个,不足以兑换${$.title}所需的${$.blueCost}个`);
|
||||
$.beanerr = `兑换失败,您目前蓝币${$.totalBlue}个,不足以兑换${$.title}所需的${$.blueCost}个`;
|
||||
}
|
||||
} else if (`${coinToBeans}` === '20') {
|
||||
if (prizeList[0] && prizeList[0].beanType === 'Bean') {
|
||||
console.log(`查询换${prizeList[0].title}ID成功,ID:${prizeList[0].prizeId}`)
|
||||
$.title = prizeList[0].title;
|
||||
$.blueCost = prizeList[0].blueCost;
|
||||
if (prizeList[1] && prizeList[1].type === 3) {
|
||||
console.log(`查询换${prizeList[1].name}ID成功,ID:${prizeList[1].prizeId}`)
|
||||
$.title = prizeList[1].name;
|
||||
$.blueCost = prizeList[1].cost;
|
||||
} else {
|
||||
console.log(`查询换万能的京豆ID失败`)
|
||||
$.beanerr = `东哥今天不给换`;
|
||||
@ -146,8 +146,8 @@ async function PrizeIndex() {
|
||||
$.beanerr = `失败,万能的京豆领光了,请明天再来`;
|
||||
return ;
|
||||
}
|
||||
if ((prizeList[0] && prizeList[0].targetNum) === (prizeList[0] && prizeList[0].finishNum)) {
|
||||
$.beanerr = `${prizeList[0].subTitle}`;
|
||||
if ((prizeList[0] && prizeList[0].limit) === (prizeList[0] && prizeList[0].finished)) {
|
||||
$.beanerr = `${prizeList[0].name}`;
|
||||
return ;
|
||||
}
|
||||
//兑换万能的京豆(1-20京豆)
|
||||
@ -162,11 +162,11 @@ async function PrizeIndex() {
|
||||
console.log(`\n\n温馨提示:需兑换商品的名称设置请尽量与其他商品有区分度,否则可能会兑换成其他类似商品\n\n`)
|
||||
let prizeId = '', i;
|
||||
for (let index = 0; index < prizeList.length; index ++) {
|
||||
if (prizeList[index].title.indexOf(coinToBeans) > -1) {
|
||||
if (prizeList[index].name.indexOf(coinToBeans) > -1) {
|
||||
prizeId = prizeList[index].prizeId;
|
||||
i = index;
|
||||
$.title = prizeList[index].title;
|
||||
$.blueCost = prizeList[index].blueCost;
|
||||
$.title = prizeList[index].name;
|
||||
$.blueCost = prizeList[index].cost;
|
||||
$.type = prizeList[index].type;
|
||||
$.beanType = prizeList[index].hasOwnProperty('beanType');
|
||||
}
|
||||
@ -192,8 +192,8 @@ async function PrizeIndex() {
|
||||
$.beanerr = `兑换失败,您目前蓝币${$.totalBlue}个,不足以兑换${$.title}所需的${$.blueCost}个`;
|
||||
}
|
||||
} else {
|
||||
console.log(`奖品兑换列表[${coinToBeans}]已下架,请检查活动页面是否存在此商品,如存在请检查您的输入是否正确`);
|
||||
$.beanerr = `奖品兑换列表[${coinToBeans}]已下架`;
|
||||
console.log(`奖品兑换列表【${coinToBeans}】已下架,请检查活动页面是否存在此商品,如存在请检查您的输入是否正确`);
|
||||
$.beanerr = `奖品兑换列表【${coinToBeans}】已下架`;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -241,7 +241,7 @@ function smtg_queryPrize(timeout = 0){
|
||||
return new Promise((resolve) => {
|
||||
setTimeout( ()=>{
|
||||
let url = {
|
||||
url : `${JD_API_HOST}&functionId=smtg_queryPrize&clientVersion=8.0.0&client=m&body=%7B%7D&t=${Date.now()}`,
|
||||
url : `${JD_API_HOST}&functionId=smt_queryPrizeAreas&clientVersion=8.0.0&client=m&body=%7B%22channel%22%3A%2218%22%7D&t=${Date.now()}`,
|
||||
headers : {
|
||||
'Origin' : `https://jdsupermarket.jd.com`,
|
||||
'Cookie' : cookie,
|
||||
@ -264,8 +264,13 @@ function smtg_queryPrize(timeout = 0){
|
||||
return
|
||||
}
|
||||
if (data.data.bizCode === 0) {
|
||||
const { prizeList } = data.data.result;
|
||||
$.queryPrizeData = data.data.result.prizeList || [];
|
||||
const { areas } = data.data.result;
|
||||
const prizes = areas.filter(vo => vo['type'] === 4);
|
||||
if (prizes && prizes[0]) {
|
||||
$.areaId = prizes[0].areaId;
|
||||
$.periodId = prizes[0].periodId;
|
||||
$.queryPrizeData = prizes[0].prizes || [];
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@ -278,11 +283,24 @@ function smtg_queryPrize(timeout = 0){
|
||||
})
|
||||
}
|
||||
//换京豆
|
||||
function smtg_obtainPrize(prizeId, timeout = 0, functionId = 'smtg_obtainPrize') {
|
||||
function smtg_obtainPrize(prizeId, timeout = 0, functionId = 'smt_exchangePrize') {
|
||||
//1000京豆,prizeId为4401379726
|
||||
const body = {
|
||||
prizeId,
|
||||
"channel": "1"
|
||||
"connectId": prizeId,
|
||||
"areaId": $.areaId,
|
||||
"periodId": $.periodId,
|
||||
"informationParam": {
|
||||
"eid": "",
|
||||
"referUrl": -1,
|
||||
"shshshfp": "",
|
||||
"openId": -1,
|
||||
"isRvc": 0,
|
||||
"fp": -1,
|
||||
"shshshfpa": "",
|
||||
"shshshfpb": "",
|
||||
"userAgent": -1
|
||||
},
|
||||
"channel": "18"
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
setTimeout( ()=>{
|
||||
@ -318,15 +336,15 @@ function smtg_obtainPrize(prizeId, timeout = 0, functionId = 'smtg_obtainPrize')
|
||||
if ($.data.data.bizCode === 0) {
|
||||
if (`${coinToBeans}` === '1000') {
|
||||
$.beanscount ++;
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.exchangeNum}次换${$.title}成功`)
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.count}次换${$.title}成功`)
|
||||
if ($.beanscount === 1) return;
|
||||
} else if (`${coinToBeans}` === '20') {
|
||||
$.beanscount ++;
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.exchangeNum}次换${$.title}成功`)
|
||||
if ($.data.data.result.exchangeNum === 20 || $.beanscount === coinToBeans || $.data.data.result.blue < 500) return;
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.count}次换${$.title}成功`)
|
||||
if ($.data.data.result.count === 20 || $.beanscount === coinToBeans || $.data.data.result.blue < $.blueCost) return;
|
||||
} else {
|
||||
$.beanscount ++;
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.exchangeNum}次换${$.title}成功`)
|
||||
console.log(`【京东账号${$.index}】${$.nickName || $.UserName} 第${$.data.data.result.count}次换${$.title}成功`)
|
||||
if ($.beanscount === 1) return;
|
||||
}
|
||||
}
|
||||
|
||||
34
jd_cash.js
34
jd_cash.js
@ -2,7 +2,7 @@
|
||||
签到领现金,每日2毛~5毛
|
||||
可互助,助力码每日不变,只变日期
|
||||
活动入口:京东APP搜索领现金进入
|
||||
更新时间:2021-04-28
|
||||
更新时间:2021-06-07
|
||||
已支持IOS双京东账号,Node.js支持N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
============Quantumultx===============
|
||||
@ -85,6 +85,7 @@ let allMessage = '';
|
||||
$.done();
|
||||
})
|
||||
async function jdCash() {
|
||||
$.signMoney = 0;
|
||||
await index()
|
||||
await shareCodesFormat()
|
||||
await helpFriends()
|
||||
@ -93,21 +94,25 @@ async function jdCash() {
|
||||
$.exchangeBeanNum = 0;
|
||||
cash_exchange = $.isNode() ? (process.env.CASH_EXCHANGE ? process.env.CASH_EXCHANGE : `${cash_exchange}`) : ($.getdata('cash_exchange') ? $.getdata('cash_exchange') : `${cash_exchange}`);
|
||||
if (cash_exchange === 'true') {
|
||||
console.log(`\n\n开始花费2元红包兑换200京豆,一周可换四次`)
|
||||
for (let item of ["-1", "0", "1", "2", "3"]) {
|
||||
$.canLoop = true;
|
||||
if ($.canLoop) {
|
||||
for (let i = 0; i < 5; i++) {
|
||||
await exchange2(item);//兑换200京豆(2元红包换200京豆,一周5次。)
|
||||
}
|
||||
if (!$.canLoop) {
|
||||
console.log(`已找到符合的兑换条件,跳出\n`);
|
||||
break
|
||||
if(Number($.signMoney) >= 2){
|
||||
console.log(`\n\n开始花费2元红包兑换200京豆,一周可换五次`)
|
||||
for (let item of ["-1", "0", "1", "2", "3"]) {
|
||||
$.canLoop = true;
|
||||
if ($.canLoop) {
|
||||
for (let i = 0; i < 5; i++) {
|
||||
await exchange2(item);//兑换200京豆(2元红包换200京豆,一周5次。)
|
||||
}
|
||||
if (!$.canLoop) {
|
||||
console.log(`已找到符合的兑换条件,跳出\n`);
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($.exchangeBeanNum) {
|
||||
message += `兑换京豆成功,获得${$.exchangeBeanNum * 100}京豆\n`;
|
||||
if ($.exchangeBeanNum) {
|
||||
message += `兑换京豆成功,获得${$.exchangeBeanNum * 100}京豆\n`;
|
||||
}
|
||||
}else{
|
||||
console.log(`\n\n现金不够2元,不进行兑换200京豆,`)
|
||||
}
|
||||
}
|
||||
await index(true)
|
||||
@ -132,6 +137,7 @@ function index(info=false) {
|
||||
console.log(`\n\n当前现金:${data.data.result.signMoney}元`);
|
||||
return
|
||||
}
|
||||
$.signMoney = data.data.result.signMoney;
|
||||
// console.log(`您的助力码为${data.data.result.inviteCode}`)
|
||||
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${data.data.result.inviteCode}\n`);
|
||||
let helpInfo = {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
京东京喜工厂
|
||||
更新时间:2021-6-5
|
||||
更新时间:2021-6-7
|
||||
修复做任务、收集电力出现火爆,不能完成任务,重新计算h5st验证
|
||||
参考自 :https://www.orzlee.com/web-development/2021/03/03/lxk0301-jingdong-signin-scriptjingxi-factory-solves-the-problem-of-unable-to-signin.html
|
||||
活动入口:京东APP-游戏与互动-查看更多-京喜工厂
|
||||
@ -39,7 +39,7 @@ const helpAu = true; //帮作者助力 免费拿活动
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
const randomCount = $.isNode() ? 20 : 5;
|
||||
let tuanActiveId = ``;
|
||||
let tuanActiveId = ``, hasSend = false;
|
||||
const jxOpenUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqsd.jd.com/pingou/dream_factory/index.html%22%20%7D`;
|
||||
let cookiesArr = [], cookie = '', message = '', allMessage = '';
|
||||
const inviteCodes = [
|
||||
@ -1061,7 +1061,8 @@ function CreateTuan() {
|
||||
$.tuanIds.push(data.data['tuanId']);
|
||||
} else {
|
||||
//{"msg":"活动已结束,请稍后再试~","nowTime":1621551005,"ret":10218}
|
||||
if (data['ret'] === 10218 && ($.index % 5 === 0) && (new Date().getHours() % 6 === 0)) {
|
||||
if (data['ret'] === 10218 && !hasSend && (new Date().getHours() % 6 === 0)) {
|
||||
hasSend = true;
|
||||
$.msg($.name, '', `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`);
|
||||
if ($.isNode()) await notify.sendNotify($.name, `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`)
|
||||
}
|
||||
|
||||
36
jd_joy.js
36
jd_joy.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-3-39
|
||||
更新时间:2021-6-6
|
||||
活动入口:京东APP我的-更多工具-宠汪汪
|
||||
建议先凌晨0点运行jd_joy.js脚本获取狗粮后,再运行此脚本(jd_joy_steal.js)可偷好友积分,6点运行可偷好友狗粮
|
||||
feedCount:自定义 每次喂养数量; 等级只和喂养次数有关,与数量无关
|
||||
@ -397,7 +397,7 @@ function getDeskGoodDetails() {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/getDeskGoodDetails?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/getDeskGoodDetails?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -431,7 +431,7 @@ function followScan(sku) {
|
||||
sku
|
||||
}
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/scan?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/scan?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "POST",
|
||||
data: body,
|
||||
@ -462,7 +462,7 @@ function scanMarket(type, body, cType = 'application/json') {
|
||||
const reqSource = 'weapp';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//draw.jdfcloud.com/common/pet/${type}?reqSource=weapp`,
|
||||
url: `//draw.jdfcloud.com/common/pet/${type}?reqSource=weapp&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "POST",
|
||||
data: body,
|
||||
credentials: "include",
|
||||
@ -494,7 +494,7 @@ function appScanMarket(type, body) {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: `//jdjoy.jd.com/common/pet/${type}`,
|
||||
url: `//jdjoy.jd.com/common/pet/${type}?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "POST",
|
||||
data: body,
|
||||
@ -527,7 +527,7 @@ function getFood(type) {
|
||||
const reqSource = 'weapp';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//draw.jdfcloud.com/common/pet/getFood?reqSource=weapp&taskType=${type}&reqSource=h5`,
|
||||
url: `//draw.jdfcloud.com/common/pet/getFood?reqSource=weapp&taskType=${type}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -558,7 +558,7 @@ function followShop(shopId) {
|
||||
const host = 'draw.jdfcloud.com';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: "//draw.jdfcloud.com/common/pet/followShop?reqSource=h5",
|
||||
url: "//draw.jdfcloud.com/common/pet/followShop?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "POST",
|
||||
data: body,
|
||||
credentials: "include",
|
||||
@ -587,7 +587,7 @@ function enterRoom() {
|
||||
const reqSource = 'weapp';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//draw.jdfcloud.com/common/pet/enterRoom/h5?reqSource=h5&invitePin=&openId=`,
|
||||
url: `//draw.jdfcloud.com/common/pet/enterRoom/h5?reqSource=h5&invitePin=&openId=&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -622,7 +622,7 @@ function appGetPetTaskConfig() {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/getPetTaskConfig",
|
||||
url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: `//draw.jdfcloud.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -657,7 +657,7 @@ function feedPets(feedNum) {
|
||||
const reqSource = 'weapp';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//draw.jdfcloud.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5`,
|
||||
url: `//draw.jdfcloud.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -717,7 +717,7 @@ function getPetTaskConfig() {
|
||||
const reqSource = 'weapp';
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: "//draw.jdfcloud.com//common/pet/getPetTaskConfig",
|
||||
url: "//draw.jdfcloud.com//common/pet/getPetTaskConfig?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -747,7 +747,7 @@ function getPetRace() {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/combat/detail/v2?help=false&reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/combat/detail/v2?help=false&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -778,7 +778,7 @@ function getRankList() {
|
||||
// const url = `${JD_API_HOST}/combat/getRankList`;
|
||||
$.raceUsers = [];
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/combat/getRankList?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/combat/getRankList?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -815,7 +815,7 @@ function runMatch(teamLevel, timeout = 5000) {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: `//jdjoy.jd.com/common/pet/combat/match?teamLevel=${teamLevel}&reqSource=h5`,
|
||||
url: `//jdjoy.jd.com/common/pet/combat/match?teamLevel=${teamLevel}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
// url: `//draw.jdfcloud.com/common/pet/combat/match?teamLevel=${teamLevel}&reqSource=h5`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -847,7 +847,7 @@ function getBackupInfo() {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/combat/getBackupInfo?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/combat/getBackupInfo?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -878,7 +878,7 @@ function getWinCoin() {
|
||||
// const url = `${weAppUrl}/combat/detail/v2?help=false&reqSource=weapp`;
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: "//draw.jdfcloud.com/common/pet/combat/detail/v2?help=false&reqSource=h5",
|
||||
url: "//draw.jdfcloud.com/common/pet/combat/detail/v2?help=false&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -911,7 +911,7 @@ function receiveJoyRunAward() {
|
||||
const host = `jdjoy.jd.com`;
|
||||
const reqSource = 'h5';
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/combat/receive?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/combat/receive?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -963,7 +963,7 @@ function getSupplyInfo(showOrder) {
|
||||
// const url = `${weAppUrl}/combat/getSupplyInfo?showOrder=${showOrder}`;
|
||||
let opt = {
|
||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//draw.jdfcloud.com/common/pet/combat/getSupplyInfo?showOrder=${showOrder}&reqSource=h5`,
|
||||
url: `//draw.jdfcloud.com/common/pet/combat/getSupplyInfo?showOrder=${showOrder}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
宠汪汪喂食(如果喂食80g失败,降级一个档次喂食(40g),依次类推),三餐,建议一小时运行一次
|
||||
更新时间:2021-4-24
|
||||
更新时间:2021-6-6
|
||||
活动入口:京东APP我的-更多工具-宠汪汪
|
||||
支持京东多个账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
@ -107,8 +107,8 @@ function feedPets(feedNum) {
|
||||
if (FEED_NUM === 0) { console.log(`跳出喂食`);resolve();return }
|
||||
console.log(`实际的喂食数量::${feedNum}g\n`);
|
||||
let opt = {
|
||||
url: `//jdjoy.jd.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5`,
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: `//jdjoy.jd.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -174,8 +174,8 @@ function feedPets(feedNum) {
|
||||
function ThreeMeals() {
|
||||
return new Promise(resolve => {
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/pet/getFood?taskType=ThreeMeals&reqSource=h5",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/pet/getFood?taskType=ThreeMeals&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Last Modified time: 2021-03-09 21:22:37
|
||||
Last Modified time: 2021-06-06 21:22:37
|
||||
宠汪汪积分兑换奖品脚本, 目前脚本只兑换京豆,兑换京豆成功,才会发出通知提示,其他情况不通知。
|
||||
活动入口:京东APP我的-更多工具-宠汪汪
|
||||
兑换规则:一个账号一天只能兑换一次京豆。
|
||||
@ -211,7 +211,7 @@ async function joyReward() {
|
||||
}
|
||||
function getExchangeRewards() {
|
||||
let opt = {
|
||||
url: "//jdjoy.jd.com/common/gift/getBeanConfigs?reqSource=h5",
|
||||
url: "//jdjoy.jd.com/common/gift/getBeanConfigs?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -255,7 +255,7 @@ function getExchangeRewards() {
|
||||
function exchange(saleInfoId, orderSource) {
|
||||
let body = {"buyParam":{"orderSource":orderSource,"saleInfoId":saleInfoId},"deviceInfo":{}}
|
||||
let opt = {
|
||||
"url": "//jdjoy.jd.com/common/gift/new/exchange",
|
||||
"url": "//jdjoy.jd.com/common/gift/new/exchange?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC",
|
||||
"data":body,
|
||||
"credentials":"include","method":"POST","header":{"content-type":"application/json"}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Last Modified time: 2021-2-19 10:22:37
|
||||
Last Modified time: 2021-6-6 10:22:37
|
||||
活动入口:京东APP我的-更多工具-宠汪汪
|
||||
最近经常出现给偷好友积分与狗粮失败的情况,故建议cron设置为多次
|
||||
jd宠汪汪偷好友积分与狗粮,及给好友喂食
|
||||
@ -47,7 +47,7 @@ if ($.isNode()) {
|
||||
let message = '', subTitle = '';
|
||||
|
||||
let jdNotify = false;//是否开启静默运行,false关闭静默运行(即通知),true打开静默运行(即不通知)
|
||||
let jdJoyHelpFeed = true;//是否给好友喂食,false为不给喂食,true为给好友喂食,默认不给好友喂食
|
||||
let jdJoyHelpFeed = true;//是否给好友喂食,false为不给喂食,true为给好友喂食,默认给好友喂食
|
||||
let jdJoyStealCoin = true;//是否偷好友积分与狗粮,false为否,true为是,默认是偷
|
||||
const JD_API_HOST = 'https://jdjoy.jd.com/pet';
|
||||
//是否给好友喂食
|
||||
@ -287,7 +287,7 @@ function getFriends(currentPage = '1') {
|
||||
return new Promise(resolve => {
|
||||
let opt = {
|
||||
url: `//draw.jdfcloud.com//common/pet/api/getFriends?itemsPerPage=20¤tPage=${currentPage * 1}&reqSource=weapp`,
|
||||
// url: `//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5`,
|
||||
// url: `//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
credentials: "include",
|
||||
@ -472,7 +472,7 @@ function getRandomFood(friendPin) {
|
||||
function getCoinChanges() {
|
||||
return new Promise(resolve => {
|
||||
let opt = {
|
||||
url: `//jdjoy.jd.com/common/pet/getCoinChanges?changeDate=${Date.now()}&reqSource=h5`,
|
||||
url: `//jdjoy.jd.com/common/pet/getCoinChanges?changeDate=${Date.now()}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
// url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5",
|
||||
method: "GET",
|
||||
data: {},
|
||||
@ -597,7 +597,7 @@ function TotalBean() {
|
||||
}
|
||||
function taskUrl(functionId, friendPin) {
|
||||
let opt = {
|
||||
url: `//jdjoy.jd.com/common/pet/${functionId}?friendPin=${encodeURI(friendPin)}&reqSource=h5`,
|
||||
url: `//jdjoy.jd.com/common/pet/${functionId}?friendPin=${encodeURI(friendPin)}&reqSource=h5&invokeKey=Oex5GmEuqGep1WLC`,
|
||||
// url: `//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5`,
|
||||
method: "GET",
|
||||
data: {},
|
||||
|
||||
60
jd_jxlhb.js
60
jd_jxlhb.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -28,11 +28,12 @@ const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
$.inviteCodeList = [];
|
||||
$.authorCodeList = [
|
||||
'hwm7S-8XHxl5Mpx4rzdPiBOa77Iohk-EgLxyNxi_FdE','3utidIhY2dRDe2mK6T_5G7yh_gGf1xD4vLB_05gZbw4',"0HZjTH3-lWv0qE6mCTvxas01pClGraCVZ1R-ECaEopk","oJ0Rt_cD3HfbYHOD03zHx7fs6lLGnz46irJmHUlaHaA","q27OvSQ2l66rl_t3LlXiVC9P7ql72fjBn2SatEF21DI","bPpQ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tyFlrPHJHu_0mNpX_AnBREYO-c3BFY', 'Mve7TKmP8UKnC9IULuBrQHzgY54j_0U5BLm5Ox6aigY',
|
||||
];
|
||||
let cookiesArr = [];
|
||||
let uniqueIdList = [
|
||||
{'id':'HY4HCW','name':'陈坤'},
|
||||
{'id':'637BQA','name':'成毅'},{'id':'XLDYRJ','name':'白宇'},{'id':'94FEDQ','name':'任嘉伦'},{'id':'GN949D','name':'刘宇宁'},{'id':'WG73ME','name':'李光洁'},{'id':'5JFCD6','name':'李纹翰'},
|
||||
{'id':'YCDXNN','name':'蔡徐坤'},{'id':'CX522V','name':'邓伦'},{'id':'877JM4','name':'张哲瀚'},{'id':'D22Q7C','name':'孟美岐'},{'id':'K6DARX','name':'龚俊'},{'id':'2SFR44','name':'白茶'},
|
||||
{'id':'S99D9G','name':'刘浩存'},{'id':'ET5F23','name':'吴尊'},{'id':'TXU6GB','name':'刘雨欣'},{'id':'FBFN48','name':'李宇春'},{'id':'UK2SUY','name':'虞书欣'},{'id':'VS4PEM','name':'热依扎'},
|
||||
|
||||
10
jd_zoo.js
10
jd_zoo.js
@ -35,11 +35,11 @@ const pKHelpAuthorFlag = true;//是否助力作者PK true 助力,false 不助
|
||||
let cookiesArr = [];
|
||||
$.cookie = '';
|
||||
$.inviteList = [];
|
||||
$.pkInviteList = [];
|
||||
$.secretpInfo = {};
|
||||
$.innerPkInviteList = [
|
||||
|
||||
$.pkInviteList = [
|
||||
"sSKNX-MpqKOJsNu8mJ7RA9BJMup4tAAmPcPPPhBUWYKUJ19UKeC8EAoKeUXELi4h",
|
||||
];
|
||||
$.secretpInfo = {};
|
||||
$.innerPkInviteList = [];
|
||||
if ($.isNode()) {
|
||||
Object.keys(jdCookieNode).forEach((item) => {
|
||||
cookiesArr.push(jdCookieNode[item])
|
||||
@ -94,6 +94,8 @@ if ($.isNode()) {
|
||||
res = await getAuthorShareCode() || [];
|
||||
res2 = await getAuthorShareCode('http://cdn.trueorfalse.top/e528ffae31d5407aac83b8c37a4c86bc/') || [];
|
||||
}
|
||||
// if (new Date().getHours() === 9 || (new Date().getHours() === 10 && new Date().getMinutes() < 20)) {
|
||||
// }
|
||||
if (pKHelpAuthorFlag) {
|
||||
$.innerPkInviteList = getRandomArrayElements([...$.innerPkInviteList, ...res, ...res2, ...res3], [...$.innerPkInviteList, ...res, ...res2, ...res3].length);
|
||||
$.pkInviteList.push(...$.innerPkInviteList);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user