mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-15 15:10:44 +08:00
Update jd_task_shopSign.js
This commit is contained in:
parent
e8259d55ff
commit
63b4e93351
@ -5,14 +5,13 @@ export class Main extends Template {
|
|||||||
super()
|
super()
|
||||||
this.profile = {
|
this.profile = {
|
||||||
title: '京东店铺签到',
|
title: '京东店铺签到',
|
||||||
crontab: `${this.rand(0, 59)} 0,${this.rand(1, 12)} * * *`,
|
crontab: 4,
|
||||||
sync: 1,
|
sync: 1,
|
||||||
verify: 1,
|
verify: 1,
|
||||||
tempExpire: 7 * 86400,
|
tempExpire: 7 * 86400,
|
||||||
prompt: {
|
prompt: {
|
||||||
token: "店铺签到token|token1"
|
token: "店铺签到token|token1"
|
||||||
},
|
}
|
||||||
libressl: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,6 +90,7 @@ export class Main extends Template {
|
|||||||
if (this.haskey(sign, 'code', 402)) {
|
if (this.haskey(sign, 'code', 402)) {
|
||||||
p.log('当前不存在有效的活动')
|
p.log('当前不存在有效的活动')
|
||||||
p.context.jump = true
|
p.context.jump = true
|
||||||
|
await this.hsetTemp(context.pid, 'expired', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.haskey(sign, 'code', [403030023, 200])) {
|
if (this.haskey(sign, 'code', [403030023, 200])) {
|
||||||
@ -102,6 +102,10 @@ export class Main extends Template {
|
|||||||
p.log(sign.msg)
|
p.log(sign.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (this.haskey(sign, 'code', 404130026)) {
|
||||||
|
p.log('用户达到签到上限')
|
||||||
|
p.info.complete = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user