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

Method sign

wxapp/skyworth.js:219–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 }
218
219 async sign() {
220 const tasks = await this.queryTasks();
221 const visibleSignCodes = tasks
222 .filter((item) => SIGN_TASK_CODES.includes(item.taskLabel))
223 .map((item) => item.taskLabel);
224 const codes = visibleSignCodes.length ? visibleSignCodes : SIGN_TASK_CODES;
225
226 for (const code of codes) {
227 try {
228 await this.completeTask(code);
229 } catch (e) {
230 this.log(`签到上报 ${code}: ${e.message || e}`);
231 }
232 await $.wait(500, 1000);
233 }
234 }
235
236 async run() {
237 try {

Callers 2

runMethod · 0.95
taskSignHeadersFunction · 0.45

Calls 4

queryTasksMethod · 0.95
completeTaskMethod · 0.95
logMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected