Update jd_task_newUnique.js

This commit is contained in:
可达鸭 2025-07-06 23:40:08 +08:00
parent fec1b921a6
commit a339c5a69c

View File

@ -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 {
} }
} }
} }
}