diff --git a/jd_joy.js b/jd_joy.js index 40442ea9..c2444a34 100644 --- a/jd_joy.js +++ b/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-1-26 +更新时间:2021-2-20 活动入口:京东APP我的-更多工具-宠汪汪 建议先凌晨0点运行jd_joy.js脚本获取狗粮后,再运行此脚本(jd_joy_steal.js)可偷好友积分,6点运行可偷好友狗粮 feedCount:自定义 每次喂养数量; 等级只和喂养次数有关,与数量无关 @@ -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}?reqSource=h5`, + url: `//jdjoy.jd.com/common/pet/${type}`, // url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5", method: "POST", data: body, @@ -622,7 +622,7 @@ function appGetPetTaskConfig() { const host = `jdjoy.jd.com`; const reqSource = 'h5'; let opt = { - url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5", + url: "//jdjoy.jd.com/common/pet/getPetTaskConfig", // url: `//draw.jdfcloud.com/common/pet/feed?feedCount=${feedNum}&reqSource=h5`, method: "GET", data: {}, @@ -716,14 +716,14 @@ function getPetTaskConfig() { const reqSource = 'weapp'; let opt = { // url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5", - url: "//draw.jdfcloud.com/common/pet/getPetTaskConfig?reqSource=h5", + url: "//draw.jdfcloud.com//common/pet/getPetTaskConfig", method: "GET", data: {}, credentials: "include", header: {"content-type": "application/json"} } const url = "https:"+ taroRequest(opt)['url'] - $.get(taskUrl(url, host, reqSource), (err, resp, data) => { + $.get(taskUrl(url.replace(/reqSource=h5/, 'reqSource=weapp'), host, reqSource), (err, resp, data) => { try { if (err) { console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️') @@ -1041,7 +1041,7 @@ function taskUrl(url, Host, reqSource) { url: url, headers: { 'Cookie': cookie, - 'reqSource': reqSource, + // 'reqSource': reqSource, 'Host': Host, 'Connection': 'keep-alive', 'Content-Type': 'application/json',