Compare commits

...

2 Commits

Author SHA1 Message Date
可达鸭
4f238da1bb Update jd_task_shopGift.js 2025-04-09 23:06:53 +08:00
可达鸭
6503477064 Update jd_task_farmNew.js 2025-04-09 21:29:32 +08:00
2 changed files with 17 additions and 2 deletions

View File

@ -180,7 +180,7 @@ export class Main extends Template {
}
else if (i.mainTitle.includes("下单")) {
}
else if (i.taskType.match("WECHAT_SHARE|JOIN_OTHER_ACT")) {
else if (i.taskType.match("WECHAT_SHARE|JOIN_OTHER_ACT|BROWSE_SEARCH")) {
}
else if (i.mainTitle.includes("浇水")) {
if (i.taskDoTimes != i.taskLimitTimes) {

View File

@ -9,11 +9,26 @@ export class Main extends Template {
display: true,
tempExpire: 8640000,
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() {
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) {