| 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 ""; |