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

Method findCheckTask

wxapp/jingyoujia.js:222–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 async findCheckTask() {
223 try {
224 const data = await this.request({ apiPath: "/app/jingyoujia/taskContinuousRecord/findCheckTask" });
225 if (!data || !data.id) {
226 $.log(`账号[${this.index}] 当前无签到活动`);
227 return;
228 }
229 this.task = data;
230 const start = String(data.startTime || "").slice(0, 10);
231 const end = String(data.endTime || "").slice(0, 10);
232 $.log(`账号[${this.index}] 签到活动: taskId=${data.id}${start || end ? ` ${start}-${end}` : ""}`);
233 } catch (e) {
234 $.log(`账号[${this.index}] 获取签到活动失败: ${e.message || e}`);
235 }
236 }
237
238 async queryRecord() {
239 if (!this.task?.id) return;

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected