From 03c288eecaed10655f45502baef73d84b588d8a7 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Thu, 8 Apr 2021 18:46:47 +0800 Subject: [PATCH] jd_joy.js update --- jd_joy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jd_joy.js b/jd_joy.js index e5f25c70..4432e4ad 100644 --- a/jd_joy.js +++ b/jd_joy.js @@ -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",