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

Method queryTasks

wxapp/junpinhui.js:505–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503 }
504
505 async queryTasks() {
506 const data = await this.gardenGet("/garden/tasks/index");
507 const tasks = listify(data);
508 if (!tasks.length) {
509 $.log(`账号[${this.index}] 未查询到任务列表`);
510 return [];
511 }
512 $.log(
513 `账号[${this.index}] 任务: ${tasks
514 .map((t) => `${t.name || t.code || t.id}:${isCompleted(t) ? "已完成" : "未完成"}`)
515 .join(",")}`
516 );
517 return tasks;
518 }
519
520 async doShareTask() {
521 try {

Callers 1

runMethod · 0.95

Calls 4

gardenGetMethod · 0.95
listifyFunction · 0.85
isCompletedFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected