mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-14 06:30:42 +08:00
Update jd_task_shopGift.js
This commit is contained in:
parent
6503477064
commit
4f238da1bb
@ -9,11 +9,26 @@ export class Main extends Template {
|
|||||||
display: true,
|
display: true,
|
||||||
tempExpire: 8640000,
|
tempExpire: 8640000,
|
||||||
verify: 1,
|
verify: 1,
|
||||||
crontab: `${this.rand(5, 10)},${this.rand(35, 40)} 9-23 * * *`
|
crontab: `${this.rand(5, 10)},${this.rand(35, 40)} 9-23 * * *`,
|
||||||
|
prompt: {
|
||||||
|
id: 'venderId_shopId_activityId'
|
||||||
|
},
|
||||||
|
readme: '不支持通过url获取,如需自定义请自行抓包:venderId,shopId,activityId'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
|
await this.field('id')
|
||||||
|
}
|
||||||
|
|
||||||
|
async batch(p) {
|
||||||
|
if (p.id) {
|
||||||
|
let [venderId, shopId, activityId] = p.id.split("_")
|
||||||
|
p = {
|
||||||
|
...p, ...{venderId, shopId, activityId}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
async main(p) {
|
async main(p) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user