mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
test
This commit is contained in:
parent
fea5e94139
commit
15c3436ed8
@ -72,7 +72,7 @@ async function jdGlobal() {
|
|||||||
await wheelsHome()
|
await wheelsHome()
|
||||||
|
|
||||||
// await signInit()
|
// await signInit()
|
||||||
// await sign()
|
await sign()
|
||||||
await invite()
|
await invite()
|
||||||
await invite2()
|
await invite2()
|
||||||
$.score = 0
|
$.score = 0
|
||||||
@ -123,33 +123,53 @@ async function signInit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function sign() {
|
async function sign() {
|
||||||
return new Promise(resolve => {
|
|
||||||
$.get(taskUrl('speedSign', {
|
return new Promise(async resolve => {
|
||||||
"kernelPlatform": "RN",
|
const body = {"linkId":signLinkId,"serviceName":"dayDaySignGetRedEnvelopeSignService","business":1};
|
||||||
"activityId": "8a8fabf3cccb417f8e691b6774938bc2",
|
let h5st = "20220412164641157%3B197ee697d50ca316f3582488c7fa9d34%3B169f1%3Btk02wd9451deb18n1P31JunSGTfZhmebuivwsEwYWUQF1ZkpdtuSmKOES5DnIMFdyOvKikdguelIiBUnJbeCgoNlcEvv%3B6e090cbde337590b51a514718fee391d46fece6b953ed1084a052f6d76ffbd92%3B3.0%3B1649753201157"
|
||||||
"noWaitPrize": "false"
|
const options = {
|
||||||
}),
|
|
||||||
async (err, resp, data) => {
|
url: `https://api.m.jd.com`,
|
||||||
try {
|
body: `functionId=apSignIn_day&body=${escape(JSON.stringify(body))}&_t=${+new Date()}&appid=activities_platform&client=H5&clientVersion=1.0.0&h5st=${h5st}`,
|
||||||
if (err) {
|
headers: {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
'Cookie': cookie,
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
"Host": "api.m.jd.com",
|
||||||
} else {
|
'Origin': 'https://daily-redpacket.jd.com',
|
||||||
if (safeGet(data)) {
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
data = JSON.parse(data);
|
"Accept": "*/*",
|
||||||
if (data.subCode === 0) {
|
"Connection": "keep-alive",
|
||||||
console.log(`签到获得${data.data.signAmount}现金,共计获得${data.data.cashDrawAmount}`)
|
"User-Agent": "jdltapp;iPhone;3.3.2;14.5.1network/wifi;hasUPPay/0;pushNoticeIsOpen/1;lang/zh_CN;model/iPhone13,2;addressid/137923973;hasOCPay/0;appBuild/1047;supportBestPay/0;pv/467.11;apprpd/MyJD_Main;",
|
||||||
|
"Accept-Language": "zh-Hans-CN;q=1, en-CN;q=0.9, zh-Hant-CN;q=0.8",
|
||||||
|
'Referer': `https://daily-redpacket.jd.com/?activityId=${signLinkId}`,
|
||||||
|
"Accept-Encoding": "gzip, deflate, br"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$.post(options, async (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
|
} else {
|
||||||
|
if (safeGet(data)) {
|
||||||
|
data = $.toObj(data);
|
||||||
|
if (data.code === 0) {
|
||||||
|
if (data.data.retCode === 0) {
|
||||||
|
message += `极速版签到提现:签到成功\n`;
|
||||||
|
console.log(`极速版签到提现:签到成功\n`);
|
||||||
} else {
|
} else {
|
||||||
console.log(`签到失败,${data.msg}`)
|
console.log(`极速版签到提现:签到失败:${data.data.retMessage}\n`);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.log(`极速版签到提现:签到异常:${JSON.stringify(data)}\n`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
|
||||||
$.logErr(e, resp)
|
|
||||||
} finally {
|
|
||||||
resolve(data);
|
|
||||||
}
|
}
|
||||||
})
|
} catch (e) {
|
||||||
|
$.logErr(e, resp)
|
||||||
|
} finally {
|
||||||
|
resolve(data);
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user