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

Method clickTask

daily/ydyp.js:4101–4108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4099 this.log("success" === t?.msg ? "签到成功" : `签到失败: ${t?.msg||"未知错误"}`)
4100 }
4101 async clickTask() {
4102 let e = 0;
4103 for (let t = 0; t < this.clickNum; t += 1) try {
4104 const t = await this.api.clickTask(319);
4105 t?.result && (e += 1), await i(200)
4106 } catch (e) {}
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();

Callers 2

runMethod · 0.95
doTaskMethod · 0.80

Calls 2

logMethod · 0.95
iFunction · 0.70

Tested by

no test coverage detected