mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-18 08:40:44 +08:00
Update jd_task_hudong.js
This commit is contained in:
parent
b0bd6a92ba
commit
905cb11725
@ -231,20 +231,23 @@ export class Main extends Template {
|
|||||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||||
}
|
}
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
let award = await this.curl({
|
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
let award = await this.curl({
|
||||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||||
user,
|
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||||
algo: {
|
user,
|
||||||
appId: 'f0f3f'
|
algo: {
|
||||||
|
appId: 'f0f3f'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(award, 'data')) {
|
||||||
|
p.log(`抽奖次数+1`)
|
||||||
}
|
}
|
||||||
)
|
else {
|
||||||
if (this.haskey(award, 'data')) {
|
p.err("抽奖领取失败")
|
||||||
p.log(`抽奖次数+1`)
|
}
|
||||||
}
|
await this.wait(1000)
|
||||||
else {
|
|
||||||
p.err("抽奖领取失败")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -307,23 +310,25 @@ export class Main extends Template {
|
|||||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||||
}
|
}
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
let award = await this.curl({
|
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
let award = await this.curl({
|
||||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||||
user,
|
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||||
algo: {
|
user,
|
||||||
appId: 'f0f3f'
|
algo: {
|
||||||
|
appId: 'f0f3f'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(award, 'data')) {
|
||||||
|
p.log(`抽奖次数+1`)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
p.err("抽奖领取失败")
|
||||||
}
|
}
|
||||||
)
|
|
||||||
if (this.haskey(award, 'data')) {
|
|
||||||
p.log(`抽奖次数+1`)
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
p.err("抽奖领取失败")
|
|
||||||
}
|
}
|
||||||
|
await this.wait(1000)
|
||||||
}
|
}
|
||||||
await this.wait(3000)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -347,25 +352,27 @@ export class Main extends Template {
|
|||||||
for (let i of this.haskey(apTask, 'data')) {
|
for (let i of this.haskey(apTask, 'data')) {
|
||||||
if (i.taskLimitTimes == i.taskDoTimes) {
|
if (i.taskLimitTimes == i.taskDoTimes) {
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
let award = await this.curl({
|
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
let award = await this.curl({
|
||||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||||
user,
|
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||||
algo: {
|
user,
|
||||||
appId: 'f0f3f',
|
algo: {
|
||||||
expire: {
|
appId: 'f0f3f',
|
||||||
code: 1000
|
expire: {
|
||||||
|
code: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(award, 'data')) {
|
||||||
|
p.log(`抽奖次数+1`)
|
||||||
}
|
}
|
||||||
)
|
else {
|
||||||
if (this.haskey(award, 'data')) {
|
p.err("抽奖领取失败")
|
||||||
p.log(`抽奖次数+1`)
|
}
|
||||||
|
await this.wait(1000)
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
p.err("抽奖领取失败")
|
|
||||||
}
|
|
||||||
await this.wait(1000)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user