MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / processTaskList

Method processTaskList

daily/ydyp.js:4109–4116  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.95

Calls 6

sleepMethod · 0.95
logMethod · 0.95
doTaskMethod · 0.95
otFunction · 0.85
iFunction · 0.70
getTaskListMethod · 0.45

Tested by

no test coverage detected