jd_joy.js update

This commit is contained in:
lxk0301
2021-04-08 18:46:47 +08:00
parent 9d3a7717b6
commit 03c288eeca

View File

@ -322,7 +322,7 @@ async function petTask() {
const body = {
"marketLink": scanMarketItem.marketLink,
"taskType": "ScanMarket",
"reqSource": "weapp"
//"reqSource": "weapp"
};
const scanMarketRes = await scanMarket('scan', body);
console.log(`逛会场-${scanMarketItem.marketName}结果::${JSON.stringify(scanMarketRes)}`)
@ -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=h5`,
url: `//draw.jdfcloud.com/common/pet/${type}?reqSource=weapp`,
method: "POST",
data: body,
credentials: "include",