mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 21:02:12 +08:00
Update jd_task_farmNew.js
This commit is contained in:
parent
a2169c9216
commit
073a442d39
@ -187,11 +187,33 @@ export class Main extends Template {
|
|||||||
user
|
user
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
await this.curl({
|
||||||
|
'form': `appid=signed_wh5&body={"version":18,"channelParam":"1"}&client=apple&clientVersion=15.0.11&functionId=farm_home`,
|
||||||
|
user,
|
||||||
|
algo: {
|
||||||
|
appId: 'c57f6',
|
||||||
|
expire: {
|
||||||
|
code: -30001
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
await this.curl({
|
await this.curl({
|
||||||
'form': `appid=signed_wh5&client=apple&clientVersion=15.1.50&screen=390*2723&wqDefault=false&build=169892&osVersion=15.1.1&networkType=wifi&d_brand=iPhone&d_model=iPhone13,3&partner=&t=1748760247773&body={"version":18,"channelParam":"1","noviceGuidanceShouldShow":false,"pageVisit":true,"babelChannel":"ttt6","showDesktopTask":true,"lbsSwitch":true}&functionId=farm_red_dot`,
|
'form': `appid=signed_wh5&client=apple&clientVersion=15.1.50&screen=390*2723&wqDefault=false&build=169892&osVersion=15.1.1&networkType=wifi&d_brand=iPhone&d_model=iPhone13,3&partner=&t=1748760247773&body={"version":18,"channelParam":"1","noviceGuidanceShouldShow":false,"pageVisit":true,"babelChannel":"ttt6","showDesktopTask":true,"lbsSwitch":true}&functionId=farm_red_dot`,
|
||||||
user
|
user
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
await this.curl({
|
||||||
|
'form': `appid=signed_wh5&body={"version":18,"channelParam":"1"}&client=apple&clientVersion=15.0.11&functionId=farm_home`,
|
||||||
|
user,
|
||||||
|
algo: {
|
||||||
|
appId: 'c57f6',
|
||||||
|
expire: {
|
||||||
|
code: -30001
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
let award = await this.curl({
|
let award = await this.curl({
|
||||||
'form': `appid=signed_wh5&client=apple&clientVersion=15.0.15&body={"version":18,"channelParam":"1","taskType":"${i.taskType}","taskId":${i.taskId},"channel":0,"pipeExt":${this.dumps(i.pipeExt)}}&functionId=farm_task_receive_award`,
|
'form': `appid=signed_wh5&client=apple&clientVersion=15.0.15&body={"version":18,"channelParam":"1","taskType":"${i.taskType}","taskId":${i.taskId},"channel":0,"pipeExt":${this.dumps(i.pipeExt)}}&functionId=farm_task_receive_award`,
|
||||||
user,
|
user,
|
||||||
@ -405,6 +427,18 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
await this.setTemp(user, inviteCode)
|
await this.setTemp(user, inviteCode)
|
||||||
|
let detail = await this.curl({
|
||||||
|
'form': `appid=signed_wh5&client=apple&clientVersion=15.1.50&screen=390*2754&wqDefault=false&build=169892&osVersion=15.1.1&networkType=wifi&d_brand=iPhone&d_model=iPhone13,3&partner=&t=1748907985657&body={"version":18,"channelParam":"1","type":1}&functionId=farm_award_detail`,
|
||||||
|
user
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(detail, 'data.result.plantAwards')) {
|
||||||
|
for (let i of detail.data.result.plantAwards) {
|
||||||
|
if (i.awardStatus == 1) {
|
||||||
|
p.msg("当前还有实物奖品可兑换")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (status && s1) {
|
if (status && s1) {
|
||||||
p.info.work = true
|
p.info.work = true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user