mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 07:30:43 +08:00
Update jd_task_hudong.js
This commit is contained in:
parent
c3f87519e5
commit
2623770182
@ -16,8 +16,7 @@ export class Main extends Template {
|
|||||||
'x-rp-client': "h5_1.0.0",
|
'x-rp-client': "h5_1.0.0",
|
||||||
'request-from': 'native',
|
'request-from': 'native',
|
||||||
referer: 'https://h5.m.jd.com/pb/015686010/Bc9WX7MpCW7nW9QjZ5N3fFeJXMH/index.html'
|
referer: 'https://h5.m.jd.com/pb/015686010/Bc9WX7MpCW7nW9QjZ5N3fFeJXMH/index.html'
|
||||||
},
|
}
|
||||||
libressl: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,6 +176,9 @@ export class Main extends Template {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
p.context.jump = true
|
||||||
|
}
|
||||||
if (p.prize.length) {
|
if (p.prize.length) {
|
||||||
p.prize.unshift(`linkId: ${context.linkId}`)
|
p.prize.unshift(`linkId: ${context.linkId}`)
|
||||||
p.msg(p.prize.join("\n"))
|
p.msg(p.prize.join("\n"))
|
||||||
@ -444,6 +446,7 @@ export class Main extends Template {
|
|||||||
case'ORDER_MARK':
|
case'ORDER_MARK':
|
||||||
case 'SHARE_INVITE':
|
case 'SHARE_INVITE':
|
||||||
case 'SUBSCRIBE_WITH_RECEIVE':
|
case 'SUBSCRIBE_WITH_RECEIVE':
|
||||||
|
case 'JOIN_OTHER_ACT':
|
||||||
case 'FOLLOW_CHANNEL':
|
case 'FOLLOW_CHANNEL':
|
||||||
case 'JOIN_BRAND':
|
case 'JOIN_BRAND':
|
||||||
case 'FOLLOW_SHOP':
|
case 'FOLLOW_SHOP':
|
||||||
@ -485,6 +488,7 @@ export class Main extends Template {
|
|||||||
)
|
)
|
||||||
if (this.haskey(home, 'code', 12)) {
|
if (this.haskey(home, 'code', 12)) {
|
||||||
p.context.finish = true
|
p.context.finish = true
|
||||||
|
await this.hsetTemp(context.pid, 'expired', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let drawNum = this.haskey(home, 'data.lotteryChances') || 0
|
let drawNum = this.haskey(home, 'data.lotteryChances') || 0
|
||||||
@ -568,6 +572,7 @@ export class Main extends Template {
|
|||||||
)
|
)
|
||||||
if (this.haskey(home, 'code', 12)) {
|
if (this.haskey(home, 'code', 12)) {
|
||||||
p.context.finish = true
|
p.context.finish = true
|
||||||
|
await this.hsetTemp(context.pid, 'expired', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let drawNum = this.haskey(home, 'data.prizeNum') || 0
|
let drawNum = this.haskey(home, 'data.prizeNum') || 0
|
||||||
@ -638,6 +643,7 @@ export class Main extends Template {
|
|||||||
)
|
)
|
||||||
if (this.haskey(home, 'code', 12)) {
|
if (this.haskey(home, 'code', 12)) {
|
||||||
p.context.finish = true
|
p.context.finish = true
|
||||||
|
await this.hsetTemp(context.pid, 'expired', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let drawNum = this.haskey(home, 'data.remainTimes') || 0
|
let drawNum = this.haskey(home, 'data.remainTimes') || 0
|
||||||
@ -704,6 +710,7 @@ export class Main extends Template {
|
|||||||
)
|
)
|
||||||
if (this.haskey(home, 'code', 12)) {
|
if (this.haskey(home, 'code', 12)) {
|
||||||
p.context.finish = true
|
p.context.finish = true
|
||||||
|
await this.hsetTemp(context.pid, 'expired', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let drawNum = this.haskey(home, 'data.remainTimes') || 0
|
let drawNum = this.haskey(home, 'data.remainTimes') || 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user