MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / tryTaskSign

Method tryTaskSign

wxapp/ykb_all.js:565–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 }
564
565 async tryTaskSign() {
566 try {
567 const tasks = await this.getTaskList();
568 const signTasks = tasks.filter((task) => this.isSignTask(task));
569 if (!signTasks.length) {
570 this.summary.sign = "未找到签到/每日任务";
571 this.log("未找到签到/每日任务");
572 return;
573 }
574 for (const task of signTasks) await this.handleTask(task);
575 } catch (e) {
576 this.summary.sign = `任务签到失败: ${e.message || e}`;
577 this.log(`任务签到失败: ${e.message || e}`);
578 }
579 }
580}
581
582!(async () => {

Callers 1

runMethod · 0.95

Calls 4

getTaskListMethod · 0.95
isSignTaskMethod · 0.95
logMethod · 0.95
handleTaskMethod · 0.95

Tested by

no test coverage detected