mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
efdaf27d2f
commit
58b5b33cbc
53
gua_opencard148.js
Normal file
53
gua_opencard148.js
Normal file
File diff suppressed because one or more lines are too long
337
jd_520mzcj.js
Normal file
337
jd_520mzcj.js
Normal file
File diff suppressed because one or more lines are too long
20
jd_dpqd.js
20
jd_dpqd.js
@ -25,23 +25,27 @@ let vender=''
|
||||
let num=0
|
||||
let shopname=''
|
||||
const token = [
|
||||
"8C1D9B1D97AB75D1704609271FD48AD0",
|
||||
"183F4F645F31082153CDD0DEE824DF3A",
|
||||
"87DC11A01AE814025159ECE32F5EECBF",
|
||||
"F6C427887883C4A567C69C0260606022",
|
||||
"7127A3861F6478043B1BF112803B9A25",
|
||||
"30FB5875B47D353278D22C6FBED0F137",
|
||||
"4C57E19D0FB3F0ABDC41EA01D5F5F6EA",
|
||||
"8622A6A8C1ECB4B2D45F07AE43397BFD",
|
||||
"6A78B850246E31C35C135BC8A0FAF5ED",
|
||||
"6F7AC3A26B2A037215596E139BEB15AF",
|
||||
"CACEC89AD3A20309748FEC03B0B0C50C",
|
||||
"D881655EDC90A9B4387ACFE495CA3F18",
|
||||
"A92870C9EB3853D7C2FF8E740FAA8BC1",
|
||||
"35F3ED7E5BDFCE58F95E01695927EC24",
|
||||
"ADFB1BB684350404A2CE4959D7D96A21",
|
||||
"3AF4B68A4BB3BD09D371B766E6A1B721",
|
||||
"273EC9E9CA27DFDD85478972A1A0ED6F",
|
||||
"3D2F9CF0C806133D3C64949F06CD4A80",
|
||||
"5EC0711D1CF81232DA1B32BE7E4D14FE",
|
||||
"183F4F645F31082153CDD0DEE824DF3A",
|
||||
"DB67ED9F116CFA3CBB75055C61ED3364",
|
||||
"99B695DFEF69DD31BB78B58D61B9C6A2",
|
||||
"EBC07F65183699ABACF313CA67B444E4",
|
||||
"FA7F19CBE89D642BAC78D23F78110620"
|
||||
"ADF510FDA71E07151B8F8AD4964A5D90",
|
||||
"F95AF209CE052E9FE0B34420DBE4C3CA",
|
||||
"7403517C61675D4DEF67C2A63366245B",
|
||||
"71DC699CFECAD1BBA618F412D8B54943",
|
||||
"038B83D1D0D374F58821C7EDC4F3B5AE"
|
||||
]
|
||||
|
||||
if ($.isNode()) {
|
||||
|
243
jd_joypark_run.ts
Normal file
243
jd_joypark_run.ts
Normal file
@ -0,0 +1,243 @@
|
||||
/**
|
||||
汪汪乐园-跑步+组队
|
||||
默认翻倍到0.04红包结束,修改请设置变量
|
||||
export JD_JOY_PARK_RUN_ASSETS="0.04"
|
||||
cron:20 * * * *
|
||||
20 * * * * jd_joy_park_run.ts
|
||||
new Env('极速版汪汪赛跑');
|
||||
|
||||
**/
|
||||
|
||||
import {get, post, o2s, requireConfig, wait} from './function/TS_USER_AGENTS'
|
||||
import {H5ST} from "./function/h5st"
|
||||
import {existsSync, readFileSync} from "fs";
|
||||
import {getDate} from "date-fns";
|
||||
|
||||
let cookie: string = '', res: any = '', UserName: string = '', fp_448de: string = '' || process.env.FP_448DE, fp_b6ac3: string = '' || process.env.FP_B6AC3
|
||||
let assets: number = 0, captainId: string = '', h5stTool: H5ST = null
|
||||
|
||||
!(async () => {
|
||||
let cookiesArr: string[] = await requireConfig()
|
||||
let account: { pt_pin: string, joy_park_run: number }[] = []
|
||||
|
||||
|
||||
for (let [index, value] of cookiesArr.entries()) {
|
||||
cookie = value
|
||||
UserName = decodeURIComponent(cookie.match(/pt_pin=([^;]*)/)![1])
|
||||
console.log(`\n开始【京东账号${index + 1}】${UserName}\n`)
|
||||
|
||||
|
||||
|
||||
assets = parseFloat(process.env.JD_JOY_PARK_RUN_ASSETS || '0.04')
|
||||
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})
|
||||
let sum: number = 0, success: number = 0
|
||||
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})
|
||||
await wait(2000)
|
||||
if (res.success){
|
||||
console.log(res.data.message)
|
||||
} else {
|
||||
console.log('提现失败:', res.errMsg)
|
||||
}
|
||||
}
|
||||
|
||||
for (let t of res?.data?.detailVos || []) {
|
||||
if (t.amount > 0 && getDate(new Date(t.createTime)) === new Date().getDate()) {
|
||||
sum = add(sum, t.amount)
|
||||
success++
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
console.log('今日成功', success, '次')
|
||||
console.log('今日收益', sum, '元')
|
||||
|
||||
res = await team('runningTeamInfo', {"linkId": "L-sOanK_5RJCz7I314FpnQ"})
|
||||
if (!captainId) {
|
||||
if (res.data.members.length === 0) {
|
||||
console.log('成为队长')
|
||||
captainId = res.data.captainId
|
||||
} else if (res.data.members.length !== 6) {
|
||||
console.log('队伍未满', res.data.members.length, '人')
|
||||
console.log('战队收益', res.data.teamSumPrize, '元')
|
||||
captainId = res.data.captainId
|
||||
} else {
|
||||
console.log('队伍已满', res.data.members.length, '人')
|
||||
console.log('战队收益', res.data.teamSumPrize, '元')
|
||||
}
|
||||
} else if (captainId && res.data.members.length === 0) {
|
||||
console.log('已有组队ID,未加入队伍')
|
||||
res = await team('runningJoinTeam', {"linkId": "L-sOanK_5RJCz7I314FpnQ", "captainId": captainId})
|
||||
if (res.code === 0) {
|
||||
console.log('组队成功')
|
||||
for (let member of res.data.members) {
|
||||
if (member.captain) {
|
||||
console.log('队长', member.nickName)
|
||||
break
|
||||
}
|
||||
}
|
||||
if (res.data.members.length === 6) {
|
||||
console.log('队伍已满')
|
||||
captainId = ''
|
||||
}
|
||||
} else {
|
||||
o2s(res, '组队失败')
|
||||
}
|
||||
} else {
|
||||
console.log('已组队', res.data.members.length, '人')
|
||||
console.log('战队收益', res.data.teamSumPrize, '元')
|
||||
}
|
||||
|
||||
|
||||
h5stTool = new H5ST('b6ac3', 'jdltapp;', fp_b6ac3)
|
||||
await h5stTool.__genAlgo()
|
||||
res = await runningPageHome()
|
||||
console.log('🧧总金额', res.data.runningHomeInfo.prizeValue, '元')
|
||||
|
||||
let energy: number = res.data.runningHomeInfo.energy
|
||||
console.log('💊 X', res.data.runningHomeInfo.energy, '个能量棒')
|
||||
await wait(2000)
|
||||
if (res.data.runningHomeInfo.nextRunningTime){
|
||||
console.log('⏳体力恢复中,还有', secondsToMinutes(res.data.runningHomeInfo.nextRunningTime / 1000))
|
||||
if (res.data.runningHomeInfo.nextRunningTime / 1000 < 300) {
|
||||
await wait(res.data.runningHomeInfo.nextRunningTime)
|
||||
res = await runningPageHome()
|
||||
console.log('体力恢复完成,开始跑步....')
|
||||
await wait(1000)
|
||||
} else {
|
||||
console.log('⏳等体力恢复在跑吧!');
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
console.log('体力已恢复,开始跑步....')
|
||||
}
|
||||
|
||||
await startRunning(res, assets)
|
||||
for (let i = 0; i < energy; i++) {
|
||||
console.log('💉消耗能量棒跑步....')
|
||||
res = await api('runningUseEnergyBar', {"linkId": "L-sOanK_5RJCz7I314FpnQ"})
|
||||
//console.log(res.errMsg)
|
||||
res = await runningPageHome()
|
||||
await startRunning(res, assets)
|
||||
await wait(1000)
|
||||
}
|
||||
res = await runningPageHome()
|
||||
console.log('🧧总金额', res.data.runningHomeInfo.prizeValue, '元')
|
||||
await wait(2000)
|
||||
} catch (e) {
|
||||
console.log('Error', e)
|
||||
await wait(3000)
|
||||
}
|
||||
}
|
||||
})()
|
||||
|
||||
async function startRunning(res: any, assets: number) {
|
||||
if (!res.data.runningHomeInfo.nextRunningTime) {
|
||||
console.log('终点目标', assets)
|
||||
for (let i = 0; i < 5; i++) {
|
||||
res = await api('runningOpenBox', {"linkId": "L-sOanK_5RJCz7I314FpnQ"})
|
||||
if (parseFloat(res.data.assets) >= assets) {
|
||||
let assets: number = parseFloat(res.data.assets)
|
||||
res = await api('runningPreserveAssets', {"linkId": "L-sOanK_5RJCz7I314FpnQ"})
|
||||
console.log('领取成功', assets)
|
||||
break
|
||||
} else {
|
||||
if (res.data.doubleSuccess) {
|
||||
console.log('翻倍成功', parseFloat(res.data.assets))
|
||||
await wait(10000)
|
||||
} else if (!res.data.doubleSuccess && !res.data.runningHomeInfo.runningFinish) {
|
||||
console.log('开始跑步', parseFloat(res.data.assets))
|
||||
await wait(10000)
|
||||
} else {
|
||||
console.log('翻倍失败')
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
await wait(3000)
|
||||
}
|
||||
|
||||
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 runningPageHome() {
|
||||
return get(`https://api.m.jd.com/?functionId=runningPageHome&body=%7B%22linkId%22:%22L-sOanK_5RJCz7I314FpnQ%22,%22isFromJoyPark%22:true,%22joyLinkId%22:%22LsQNxL7iWDlXUs6cFl-AAg%22%7D&t=${Date.now()}&appid=activities_platform&client=ios&clientVersion=3.1.0`, {
|
||||
'Host': 'api.m.jd.com',
|
||||
'Origin': 'https://h5platform.jd.com',
|
||||
'User-Agent': 'jdltapp;',
|
||||
'Referer': 'https://h5platform.jd.com/',
|
||||
'Cookie': cookie
|
||||
})
|
||||
}
|
||||
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
// 秒转时分秒
|
||||
function secondsToMinutes(seconds: number) {
|
||||
let minutes: number = Math.floor(seconds / 60)
|
||||
let second: number = Math.floor(seconds % 60)
|
||||
return `${minutes}分${second}秒`
|
||||
}
|
||||
|
||||
// 小数加法
|
||||
function add(num1: number, num2: number) {
|
||||
let r1: number, r2: number
|
||||
try {
|
||||
r1 = num1.toString().split('.')[1].length
|
||||
} catch (e) {
|
||||
r1 = 0
|
||||
}
|
||||
try {
|
||||
r2 = num2.toString().split('.')[1].length
|
||||
} catch (e) {
|
||||
r2 = 0
|
||||
}
|
||||
let m: number = Math.pow(10, Math.max(r1, r2))
|
||||
return (num1 * m + num2 * m) / m
|
||||
}
|
83
jd_qqxing.js
83
jd_qqxing.js
@ -1,12 +1,9 @@
|
||||
/*
|
||||
星系牧场
|
||||
活动入口:QQ星儿童牛奶京东自营旗舰店->品牌会员->星系牧场
|
||||
每次都要手动打开才能跑 不知道啥问题
|
||||
号1默认给我助力,后续接龙 2给1 3给2
|
||||
19.0复制整段话 http:/J7ldD7ToqMhRJI星系牧场养牛牛,可获得DHA专属奶!%VAjYb8me2b!→去猄倲←
|
||||
[task_local]
|
||||
#星系牧场
|
||||
1 0-23/2 * * * jd_qqxing.js
|
||||
22 4-22/3 * * * jd_qqxing.js
|
||||
*/
|
||||
const $ = new Env('QQ星系牧场');
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
@ -37,15 +34,18 @@ if ($.isNode()) {
|
||||
|
||||
const JD_API_HOST = `https://api.m.jd.com/client.action`;
|
||||
message = ""
|
||||
$.shareuuid = "5e81094ee1d640b2996883b48d0c410a"
|
||||
!(async () => {
|
||||
!(async () => {
|
||||
console.log("活动入口:https://lzdz-isv.isvjcloud.com/dingzhi/qqxing/pasture/activity/5270742?activityId=90121061401\n此活动黑IP严重,仅跑前7账号,需要请自行修改")
|
||||
if (!cookiesArr[0]) {
|
||||
$.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {
|
||||
"open-url": "https://bean.m.jd.com/"
|
||||
});
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i <cookiesArr.length; i++) {
|
||||
let codeList = ['bf3ffb1c973a49acbac4983ac15162f3','be5c05485b624d69b2bb1acee71ffc87']
|
||||
$.shareUuid = codeList[Math.floor((Math.random()*codeList.length))]
|
||||
//for (let i = 0; i <cookiesArr.length; i++) {
|
||||
for (let i = 0; i < 7; i++) {
|
||||
cookie = cookiesArr[i];
|
||||
if (cookie) {
|
||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
|
||||
@ -85,43 +85,46 @@ $.shareuuid = "5e81094ee1d640b2996883b48d0c410a"
|
||||
console.log(task.taskname)
|
||||
if (task.taskid == "interact") {
|
||||
for (l = 0; l < 20 - task.curNum; l++) {
|
||||
await dotask(task.taskid, task.params)
|
||||
await $.wait(10000)
|
||||
console.log('完成任务中....等待5秒....')
|
||||
await dotask(task.taskid, task.params)
|
||||
await $.wait(5000)
|
||||
}
|
||||
console.log('互动完成')
|
||||
} else if (task.taskid == "scansku") {
|
||||
await getproduct()
|
||||
await writePersonInfo($.vid)
|
||||
await dotask(task.taskid, $.pparam)
|
||||
} else if (task.taskid !== "add2cart") {
|
||||
} else if (task.taskid !== "add2cart") {
|
||||
await dotask(task.taskid, task.params)
|
||||
await $.wait(10000)
|
||||
await $.wait(5000)
|
||||
}
|
||||
}
|
||||
await getinfo()
|
||||
for (k = 0; k < $.drawchance; k++) {
|
||||
await draw()
|
||||
}
|
||||
// let exchanges = Math.floor($.foodNum / 1000)
|
||||
// console.log(`可兑换 ${exchanges} 次 20京🐶`)
|
||||
// if (!Exchange) { console.log("你 默认 不兑换东西,请自行进去活动兑换") } else {
|
||||
// for (q = 0; q < exchanges && Exchange; q++) {
|
||||
// await exchange(13)
|
||||
// }
|
||||
// }
|
||||
// await getinfo()
|
||||
// message += `【京东账号${$.index}】${$.nickName || $.UserName}\n${$.cow} 兑换京🐶 ${$.exchange} ${$.drawresult}\n`
|
||||
let exchanges =Math.floor($.foodNum/10000)
|
||||
console.log(`可兑换 ${exchanges} 次 100京🐶`)
|
||||
for(q = 0;q<exchanges && Exchange;q++){
|
||||
await exchange(14) //16是100豆,14是50豆,13是20豆
|
||||
}
|
||||
await getinfo()
|
||||
if(!Exchange){console.log("你 默认 不兑换东西,请自行进去活动兑换")}
|
||||
message += `【京东账号${$.index}】${$.nickName || $.UserName}\n${$.cow} 兑换京🐶 ${$.exchange} ${$.drawresult}\n`
|
||||
console.log("休息休息~")
|
||||
await $.wait(80*1000)
|
||||
} else {
|
||||
$.msg($.name, "", "跑不起来了~请自己进去一次牧场")
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (message.length != 0) {
|
||||
// if ($.isNode()) {
|
||||
// await notify.sendNotify("星系牧场", `${message}\n牧场入口:QQ星儿童牛奶京东自营旗舰店->星系牧场\n\n吹水群:https://t.me/wenmouxx`);
|
||||
// } else {
|
||||
// $.msg($.name, "", '星系牧场' + message)
|
||||
// }
|
||||
// }
|
||||
if (message.length != 0) {
|
||||
if ($.isNode()) {
|
||||
//await notify.sendNotify("星系牧场", `${message}\n牧场入口:QQ星儿童牛奶京东自营旗舰店->星系牧场\n\n`);
|
||||
} else {
|
||||
$.msg($.name, "", '星系牧场' + message)
|
||||
}
|
||||
}
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done())
|
||||
@ -230,7 +233,7 @@ function getToken2() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
data = JSON.parse(data);
|
||||
// console.log(data)
|
||||
//console.log(data)
|
||||
$.token2 = data['token']
|
||||
// console.log($.token2)
|
||||
}
|
||||
@ -303,7 +306,7 @@ function getshopid() {
|
||||
|
||||
//获取我的pin
|
||||
function getMyPin() {
|
||||
let config = taskPostUrl("/customer/getMyPing", `userId=${$.shopid}&token=${encodeURIComponent($.token2)}&fromType=APP`)
|
||||
let config = taskPostUrl("/dingzhi/bd/common/getMyPing", `userId=${$.shopid}&token=${encodeURIComponent($.token2)}&fromType=APP&activityId=90121061401`)
|
||||
// console.log(config)
|
||||
return new Promise(resolve => {
|
||||
$.post(config, async (err, resp, data) => {
|
||||
@ -408,7 +411,7 @@ function getUid() {
|
||||
if(data.data.openCardStatus !=3){
|
||||
console.log("当前未开卡,无法助力和兑换奖励哦")
|
||||
}
|
||||
// $.shareuuid = data.data.uid
|
||||
$.shareuuid = data.data.uid
|
||||
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.shareuuid}\n`);
|
||||
}
|
||||
}
|
||||
@ -423,13 +426,13 @@ function getUid() {
|
||||
|
||||
//获取任务列表
|
||||
function getinfo() {
|
||||
let config = taskPostUrl("/dingzhi/qqxing/pasture/myInfo", `activityId=90121061401&pin=${encodeURIComponent($.pin)}&pinImg=${$.pinImg}&nick=${$.nick}&cjyxPin=&cjhyPin=&shareUuid=${$.shareuuid}`)
|
||||
let config = taskPostUrl("/dingzhi/qqxing/pasture/myInfo", `activityId=90121061401&pin=${encodeURIComponent($.pin)}&pinImg=${$.pinImg}&actorUuid=${$.shareuuid}&userUuid=${$.shareuuid}`)
|
||||
return new Promise(resolve => {
|
||||
$.post(config, async (err, resp, data) => {
|
||||
updateCookie(resp)
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
//console.log(`${JSON.stringify(err)}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
data = JSON.parse(data);
|
||||
@ -531,12 +534,12 @@ function exchange(id) {
|
||||
} else {
|
||||
data = JSON.parse(data);
|
||||
// console.log()
|
||||
if(data.result){
|
||||
console.log(`兑换 ${data.data.rewardName}成功`)
|
||||
$.exchange += 20
|
||||
}else{
|
||||
console.log(JSON.stringify(data))
|
||||
}
|
||||
if(data.result){
|
||||
console.log(`兑换 ${data.data.rewardName}成功`)
|
||||
$.exchange += 20
|
||||
}else{
|
||||
console.log(data.errorMessage,'\n')
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
$.logErr(e, resp)
|
||||
@ -617,7 +620,7 @@ function taskUrl(url, body) {
|
||||
'Host': 'lzdz-isv.isvjcloud.com',
|
||||
'Accept': 'application/json',
|
||||
// 'X-Requested-With': 'XMLHttpRequest',
|
||||
'Referer': 'https://lzdz-isv.isvjcloud.com/dingzhi/qqxing/pasture/activity/6318274?activityId=90121061401&shareUuid=15739046ca684e8c8fd303c8a14e889a&adsource=null&shareuserid4minipg=Ej42XlmwUZpSlF8TzjHBW2Sy3WQlSnqzfk0%2FaZMj9YjTmBx5mleHyWG1kOiKkz%2Fk&shopid=undefined&lng=107.146945&lat=33.255267&sid=cad74d1c843bd47422ae20cadf6fe5aw&un_area=8_573_6627_52446',
|
||||
'Referer': 'https://lzdz-isv.isvjcloud.com',
|
||||
'user-agent': 'jdapp;android;10.0.4;11;2393039353533623-7383235613364343;network/wifi;model/Redmi K30;addressid/138549750;aid/290955c2782e1c44;oaid/b30cf82cacfa8972;osVer/30;appBuild/88641;partner/xiaomi001;eufv/1;jdSupportDarkMode/0;Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045537 Mobile Safari/537.36',
|
||||
'content-type': 'application/x-www-form-urlencoded',
|
||||
'Cookie': cookie,
|
||||
@ -636,7 +639,7 @@ function taskPostUrl(url, body) {
|
||||
'Host': 'lzdz-isv.isvjcloud.com',
|
||||
'Accept': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
'Referer': 'https://lzdz-isv.isvjcloud.com/dingzhi/qqxing/pasture/activity/6318274?activityId=90121061401&shareUuid=15739046ca684e8c8fd303c8a14e889a&adsource=null&shareuserid4minipg=Ej42XlmwUZpSlF8TzjHBW2Sy3WQlSnqzfk0%2FaZMj9YjTmBx5mleHyWG1kOiKkz%2Fk&shopid=undefined&lng=107.146945&lat=33.255267&sid=cad74d1c843bd47422ae20cadf6fe5aw&un_area=8_573_6627_52446',
|
||||
'Referer': 'https://lzdz-isv.isvjcloud.com',
|
||||
'user-agent': 'jdapp;android;10.0.4;11;2393039353533623-7383235613364343;network/wifi;model/Redmi K30;addressid/138549750;aid/290955c2782e1c44;oaid/b30cf82cacfa8972;osVer/30;appBuild/88641;partner/xiaomi001;eufv/1;jdSupportDarkMode/0;Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045537 Mobile Safari/537.36',
|
||||
'content-type': 'application/x-www-form-urlencoded',
|
||||
'Cookie': cookie,
|
||||
|
272
jd_superBrandJK.js
Normal file
272
jd_superBrandJK.js
Normal file
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
/**
|
||||
特务之明星送好礼
|
||||
一次性脚本。请禁用!
|
||||
cron 36 18 * * * jd_superBrandStar.js
|
||||
cron 36 22 * * * jd_superBrandStar.js
|
||||
*/
|
||||
const $ = new Env('特务之明星送好礼');
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
|
11
jd_wish.js
11
jd_wish.js
@ -150,6 +150,17 @@ async function healthyDay_getHomeData(type = true) {
|
||||
data = JSON.parse(data);
|
||||
// console.log(data);
|
||||
if (type) {
|
||||
for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) {
|
||||
let vo = data.data.result.hotTaskVos[key]
|
||||
if (vo.status !== 2) {
|
||||
if (vo.taskType === 13 || vo.taskType === 12) {
|
||||
console.log(`点击热区`)
|
||||
await harmony_collectScore({ "appId": appId, "taskToken": vo.simpleRecordInfoVo.taskToken, "taskId": vo.taskId, "actionType": "0" }, vo.taskType)
|
||||
} else {
|
||||
console.log(`【${vo.taskName}】已完成\n`)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let key of Object.keys(data.data.result.taskVos).reverse()) {
|
||||
let vo = data.data.result.taskVos[key]
|
||||
if (vo.status !== 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user