mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
6dy
This commit is contained in:
parent
91ad05c4d0
commit
cbb7ad78ba
@ -185,7 +185,8 @@ async function doTask(subTitleId, taskId, batchId) {
|
|||||||
"itemId": "1",
|
"itemId": "1",
|
||||||
"rankId": $.skuList[randIndex]['rankId'],
|
"rankId": $.skuList[randIndex]['rankId'],
|
||||||
"type": 1,
|
"type": 1,
|
||||||
batchId
|
batchId,
|
||||||
|
"version": "2"
|
||||||
};
|
};
|
||||||
await goldCreatorDoTask(body);
|
await goldCreatorDoTask(body);
|
||||||
}
|
}
|
||||||
@ -194,7 +195,7 @@ async function doTask2(batchId) {
|
|||||||
task = task.filter(vo => !!vo && vo['taskStatus'] === 1);
|
task = task.filter(vo => !!vo && vo['taskStatus'] === 1);
|
||||||
for (let item of task) {
|
for (let item of task) {
|
||||||
console.log(`\n做额外任务:${item['taskName']}`)
|
console.log(`\n做额外任务:${item['taskName']}`)
|
||||||
const body = {"taskId": item['taskId'], "itemId": item['taskItemInfo']['itemId'], "type": item['taskType'], batchId};
|
const body = {"taskId": item['taskId'], "itemId": item['taskItemInfo']['itemId'], "type": item['taskType'], batchId, "version":"2"};
|
||||||
if (item['taskType'] === 1) {
|
if (item['taskType'] === 1) {
|
||||||
body['type'] = 2;
|
body['type'] = 2;
|
||||||
}
|
}
|
||||||
@ -267,13 +268,8 @@ function goldCreatorPublish() {
|
|||||||
}
|
}
|
||||||
function taskUrl(function_id, body = {}) {
|
function taskUrl(function_id, body = {}) {
|
||||||
return {
|
return {
|
||||||
url: `${JD_API_HOST}?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=content_ecology&clientVersion=10.0.0&client=wh5&eufv=false&uuid=`,
|
url: `${JD_API_HOST}?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=content_ecology&clientVersion=11.3.0&client=wh5&jsonp=`,
|
||||||
headers: {
|
headers: {
|
||||||
"Accept": "*/*",
|
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
|
||||||
"Accept-Language": "zh-cn",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Content-Type": "application/x-www-form-urlencoded",
|
|
||||||
"Host": "api.m.jd.com",
|
"Host": "api.m.jd.com",
|
||||||
"Referer": "https://h5.m.jd.com/",
|
"Referer": "https://h5.m.jd.com/",
|
||||||
"Cookie": cookie,
|
"Cookie": cookie,
|
||||||
|
109
jd_speed_sign.js
109
jd_speed_sign.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user