This commit is contained in:
Faker 2022-07-10 18:53:20 +08:00
parent 9433ed146e
commit b67a6b1529
6 changed files with 4026 additions and 377 deletions

File diff suppressed because one or more lines are too long

615
gua_wealth_island_help.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@ let vender=''
let num=0
let shopname=''
const token = [
"3F56A097F60FF8E435784C2B1102D82B",
"374951B8D50E5D4E01E40153413F00E9",
"1565B6639C0F5315D41C7D07129EBB9C",
"3949F55A02AA8A345409AFD9821C861F",
"C387DE3A3F4381FB3E451F0C40069FE6",
@ -34,29 +34,27 @@ const token = [
"62CED31ECD51A5D51A2BBB9FB793393A",
"2ED2F283E4640130BA5128E8BBDC3DDA",
"1DD46671387EAC6FDC14B753E01D5E30",
"0F14035F1DDD2F44460D36B0A007A548",
"55F4692F86018A4E5FE035E96942C985",
"662E62C629FB6B20CED938E41A0DC026",
"F573A078062F9F18BFCC39080864D7F5",
"D7DCB5D6D847EB0167C2B0A180B95F68",
"F7534A237EC4CFD50B8901BEF08E6FB7",
"6F92A6B2AF1D1C6BA2315F12C15194D2",
"3F5E5185BCDF88ADEF76867A9CC7AD44",
"137B6809356B33FFACA79B8D6115208F",
"9112C9042DF613BFAD089EDA19485E86",
"67D2D5824D043A5C2EA9C53B900B932C",
"43FE9201AB1206649B74BE1487A4BB3C",
"9C6F1F170565F3FA9253FCC9375248C0",
"A3DD0D4F4068F0FA9671937E4CC402CD",
"AA515683C3F7D2A4797AD5B4B52E4496",
"BFD5D11942F2349BBB3F910BCE954E8F",
"205E1E703925C48276C0DEBF16C6CBAD",
"DC2D503AEC0235CB3F574DE47192325A",
"921478C146E5C60F2444E3978AC8E94F",
"65F125FA81931EFB87E3558AB203D3E3",
"6A1D522B151D1245362A9EED52D50CC6",
"20564C6C72406F2707C9069D113B4449",
"DCD4903E0278DBA70A302612F411876F",
"DB872465EDEB653BB501819F9B9DD326",
"D4BE8025929E6D662FBCB9F946BF4215",
"28F4291D4B1829B2B10193786F6005C0",
"BC28601FD2C5B9A5D50038825C842358",
"A622DB2BAEB4C3B6054CE62968371E43",
"7879A6C855D8D5D52F6329A59DA949FF"
"4299C28E3A8C24A1E38E5D90B70C3107",
"BC28601FD2C5B9A5D50038825C842358"
]
if ($.isNode()) {

88
jd_joy_run_reward.ts Normal file
View File

@ -0,0 +1,88 @@
/**
-10
2 0 0 * * 5 jd_joy_run_reward.ts
new Env('汪汪赛跑提现')
Modify By Dylan from HW
updateTime2022-07-09
**/
import {get, post, requireConfig, wait} from './function/TS_USER_AGENTS'
import {H5ST} from "./function/h5st"
let cookie: string = '', res: any = '', UserName: string = '', fp_448de: string = '' || process.env.FP_448DE, fp_b6ac3: string = '' || process.env.FP_B6AC3
let h5stTool: H5ST = null
!(async () => {
let cookiesArr: string[] = await requireConfig()
for (let [index, value] of cookiesArr.entries()) {
cookie = value
UserName = decodeURIComponent(cookie.match(/pt_pin=([^;]*)/)![1])
console.log(`\n开始【京东账号${index + 1}${UserName}\n`)
let rewardAmount: number = 0
try {
h5stTool = new H5ST('448de', 'jdltapp;', fp_448de)
await h5stTool.__genAlgo()
res = await team('runningMyPrize', {"linkId": "L-sOanK_5RJCz7I314FpnQ", "pageSize": 20, "time": null, "ids": null})
rewardAmount = res.data.rewardAmount
if (res.data.runningCashStatus.currentEndTime && res.data.runningCashStatus.status === 0) {
console.log('可提现', rewardAmount)
res = await api('runningPrizeDraw', {"linkId": "L-sOanK_5RJCz7I314FpnQ", "type": 2, "level": 3})
await wait(2000)
if (res.success){
console.log(res.data.message)
} else {
console.log('提现失败:', res.errMsg)
}
}else{
console.log('还未到提现时间')
}
} catch (e) {
console.log('Error', e)
await wait(1000)
}
}
})()
async function api(fn: string, body: object) {
let timestamp: number = Date.now(), h5st: string = ''
if (fn === 'runningOpenBox') {
h5st = h5stTool.__genH5st({
appid: "activities_platform",
body: JSON.stringify(body),
client: "ios",
clientVersion: "3.1.0",
functionId: "runningOpenBox",
t: timestamp.toString()
})
}
let params: string = `functionId=${fn}&body=${JSON.stringify(body)}&t=${timestamp}&appid=activities_platform&client=ios&clientVersion=3.1.0&cthr=1`
h5st && (params += `&h5st=${h5st}`)
return await post('https://api.m.jd.com/', params, {
'authority': 'api.m.jd.com',
'content-type': 'application/x-www-form-urlencoded',
'cookie': cookie,
'origin': 'https://h5platform.jd.com',
'referer': 'https://h5platform.jd.com/',
'user-agent': 'jdltapp;'
})
}
async function team(fn: string, body: object) {
let timestamp: number = Date.now(), h5st: string
h5st = h5stTool.__genH5st({
appid: "activities_platform",
body: JSON.stringify(body),
client: "ios",
clientVersion: "3.1.0",
functionId: fn,
t: timestamp.toString()
})
return await get(`https://api.m.jd.com/?functionId=${fn}&body=${encodeURIComponent(JSON.stringify(body))}&t=${timestamp}&appid=activities_platform&client=ios&clientVersion=3.1.0&cthr=1&h5st=${h5st}`, {
'Host': 'api.m.jd.com',
'User-Agent': 'jdltapp;',
'Origin': 'https://h5platform.jd.com',
'X-Requested-With': 'com.jd.jdlite',
'Referer': 'https://h5platform.jd.com/',
'Cookie': cookie
})
}

3407
jd_ry.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long