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

Method clockInfo

wxapp/wps.js:413–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411 }
412
413 async clockInfo() {
414 try {
415 const res = await this.request("GET", CLOCK_INFO, {
416 params: {
417 client_type: CLIENT_TYPE,
418 page_index: 0,
419 page_size: 10,
420 },
421 });
422 if (res.result === "ok") {
423 const d = res.data || {};
424 if (d.s_key) this.clockConfig.key = d.s_key;
425 $.log(`账号[${this.index}] 签到信息: 连续${d.continuous_days ?? 0}天,累计${d.clock_in_total_num ?? "未知"}人打卡`);
426 }
427 } catch (e) {
428 $.log(`账号[${this.index}] 查询签到信息失败: ${e.message || e}`);
429 }
430 }
431
432 async getMainCode() {
433 if (!this.openid) return "";

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected