(taskId)
| 592 | } |
| 593 | |
| 594 | async querySignStatus(taskId) { |
| 595 | const res = await this.pointSign("/AIoTPointsMall/gw/svc/HiVip/1.0/getCheckInStatus", { |
| 596 | taskId, |
| 597 | sourceType: SOURCE_TYPE, |
| 598 | }); |
| 599 | if (String(res.code ?? "1") !== "0") throw new Error(`签到状态查询失败: ${short(res, 500)}`); |
| 600 | const status = res.checkInStatus || {}; |
| 601 | $.log(`账号[${this.index}] 签到状态: ${formatSignStatus(status)}`); |
| 602 | return status; |
| 603 | } |
| 604 | |
| 605 | async signIn(taskId, status = {}) { |
| 606 | if (status.signedToday) { |
no test coverage detected