mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-18 00:20: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
|
||||
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
|
||||
for (let i of this.haskey(list, 'data.result.taskList')) {
|
||||
if (i.completionFlag) {
|
||||
@ -275,5 +293,6 @@ export class Main extends Template {
|
||||
p.info.work = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user