jd_joy.js update
This commit is contained in:
@ -322,7 +322,7 @@ async function petTask() {
|
|||||||
const body = {
|
const body = {
|
||||||
"marketLink": scanMarketItem.marketLink,
|
"marketLink": scanMarketItem.marketLink,
|
||||||
"taskType": "ScanMarket",
|
"taskType": "ScanMarket",
|
||||||
"reqSource": "weapp"
|
//"reqSource": "weapp"
|
||||||
};
|
};
|
||||||
const scanMarketRes = await scanMarket('scan', body);
|
const scanMarketRes = await scanMarket('scan', body);
|
||||||
console.log(`逛会场-${scanMarketItem.marketName}结果::${JSON.stringify(scanMarketRes)}`)
|
console.log(`逛会场-${scanMarketItem.marketName}结果::${JSON.stringify(scanMarketRes)}`)
|
||||||
@ -462,7 +462,7 @@ function scanMarket(type, body, cType = 'application/json') {
|
|||||||
const reqSource = 'weapp';
|
const reqSource = 'weapp';
|
||||||
let opt = {
|
let opt = {
|
||||||
// url: "//jdjoy.jd.com/common/pet/getPetTaskConfig?reqSource=h5",
|
// 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",
|
method: "POST",
|
||||||
data: body,
|
data: body,
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
|
Reference in New Issue
Block a user