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

Method queryRecord

wxapp/jingyoujia.js:238–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 async queryRecord() {
239 if (!this.task?.id) return;
240 try {
241 const data = await this.request({
242 apiPath: "/app/jingyoujia/taskContinuousRecord/queryRecord",
243 params: { taskId: this.task.id },
244 });
245 this.record = data || {};
246 $.log(`账号[${this.index}] 签到状态: 连续${data?.continuousNum ?? 0}天 今日=${data?.todayFinish ? "已签" : "未签"}`);
247 } catch (e) {
248 $.log(`账号[${this.index}] 查询签到状态失败: ${e.message || e}`);
249 }
250 }
251
252 async signIn() {
253 if (!this.task?.id) return;

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected