| 4107 | this.log(e > 0 ? `戳一下成功 ${e} 次` : `戳一下未获得奖励 x ${this.clickNum}`) |
| 4108 | } |
| 4109 | async processTaskList(e, t) { |
| 4110 | const r = await this.api.getTaskList(e); |
| 4111 | await this.sleep(); |
| 4112 | const o = r?.result || {}; |
| 4113 | for (const e of Object.keys(o)) |
| 4114 | if (!["new", "hidden", "hiddenabc"].includes(e)) |
| 4115 | for (const r of o[e]) ot(t, e, r.id) || ("FINISH" !== r.state ? (this.log(`去完成任务: ${r.name}`), await this.doTask(r.id, e, t), await i(2e3)) : this.log(`已完成任务: ${r.name}`)) |
| 4116 | } |
| 4117 | async doTask(e, t, r) { |
| 4118 | if (await this.sleep(), await this.api.clickTask(e, { |
| 4119 | throwHttpErrors: !1 |