This commit is contained in:
lxk0301
2021-06-06 19:15:20 +08:00
parent 96f374ddd0
commit 237b3dfef7

View File

@ -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}&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&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&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",