mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 07:30:43 +08:00
Update jd_task_newUnique.js
This commit is contained in:
parent
fec1b921a6
commit
a339c5a69c
@ -121,6 +121,24 @@ export class Main extends Template {
|
|||||||
p.info.complete = true
|
p.info.complete = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
else if (this.haskey(list, "data.bizCode", -1002)) {
|
||||||
|
p.log("活动已结束,等待开奖")
|
||||||
|
let reward = await this.curl({
|
||||||
|
'form': `functionId=newunique_get_reward&appid=signed_wh5&body={"channelId":"3","roundId":"${context.roundId}"}&client=ios&clientVersion=15.0.80`,
|
||||||
|
user,
|
||||||
|
algo: {
|
||||||
|
appId: 'ba62b'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(reward, 'dasta.result.awwardInfo.beanNum')) {
|
||||||
|
p.award(reward.data.result.awardInfo.beanNum, 'bean')
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
p.log(this.haskey(reward, 'data.bizMsg') || reward)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
let status = 1
|
let status = 1
|
||||||
for (let i of this.haskey(list, 'data.result.taskList')) {
|
for (let i of this.haskey(list, 'data.result.taskList')) {
|
||||||
if (i.completionFlag) {
|
if (i.completionFlag) {
|
||||||
@ -276,4 +294,5 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user