mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
2c4c997a26
commit
9c02b65a98
File diff suppressed because one or more lines are too long
31
jd_dwapp.js
31
jd_dwapp.js
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
积分换话费
|
积分换话费
|
||||||
入口:首页-生活·缴费-积分换话费
|
入口:首页-生活·缴费-积分换话费
|
||||||
update:2023/6/10
|
update:2023/6/23
|
||||||
33 3,18 * * * jd_dwapp.js
|
20 2,15 * * * jd_dwapp.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env('积分换话费');
|
const $ = new Env('积分换话费');
|
||||||
@ -41,14 +41,16 @@ if ($.isNode()) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
$.UUID = getUUID('xxxxxxxxxxxxxxxx');
|
$.UUID = getUUID('xxxxxxxxxxxxxxxx');
|
||||||
await main()
|
await main();
|
||||||
|
await $.wait(3000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
$.log("去签到")
|
$.log("去签到")
|
||||||
await usersign()
|
await usersign();
|
||||||
|
await $.wait(2000);
|
||||||
await tasklist();
|
await tasklist();
|
||||||
if ($.tasklist) {
|
if ($.tasklist) {
|
||||||
for (let i of $.tasklist) {
|
for (let i of $.tasklist) {
|
||||||
@ -131,22 +133,35 @@ async function taskreceive(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function usersign() {
|
async function usersign() {
|
||||||
body = await sign()
|
body = await sign();
|
||||||
|
body.channelSource = 'txzs';
|
||||||
|
let opt = {
|
||||||
|
url: `https://api.m.jd.com/user/color/task/dwSign`,
|
||||||
|
body: `appid=txsm-m&client=h5&functionId=DATAWALLET_USER_SIGN&body=${encodeURIComponent(JSON.stringify(body))}`,
|
||||||
|
headers: {
|
||||||
|
"Origin": "https://txsm-m.jd.com",
|
||||||
|
"Accept": "*/*",
|
||||||
|
"User-Agent": `jdapp;iPhone;10.1.0;13.5;${$.UUID};network/wifi;model/iPhone11,6;addressid/4596882376;appBuild/167774;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1`,
|
||||||
|
"Referer": "https://txsm-m.jd.com/",
|
||||||
|
"Cookie": cookie,
|
||||||
|
}
|
||||||
|
}
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
$.post(taskPostUrl("dwSign", body), (err, resp, data) => {
|
$.post(opt, (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err}`)
|
console.log(`${err}`)
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
JSON.stringify(data);
|
|
||||||
if (data) {
|
if (data) {
|
||||||
if (data.code === 200) {
|
if (data.code === 200) {
|
||||||
console.log(`签到成功:获得积分${data.data.signInfo.signNum}`);
|
console.log(`签到成功:获得积分${data.data.signInfo.signNum}`);
|
||||||
$.log(`总积分:${data.data.totalNum}\n`);
|
$.log(`总积分:${data.data.totalNum}\n`);
|
||||||
|
} else if(data.code === 302){
|
||||||
|
console.log("已完成签到!!!\n");
|
||||||
} else {
|
} else {
|
||||||
console.log("似乎签到完成了\n");
|
$.log(JSON.stringify(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
383
jx_joypark_task.js
Normal file
383
jx_joypark_task.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user