(silent = false)
| 225 | } |
| 226 | |
| 227 | async getSignInInfo(silent = false) { |
| 228 | const data = await this.request({ apiPath: "/sign-in/statistics" }); |
| 229 | this.signInfo = data || {}; |
| 230 | if (!silent) { |
| 231 | $.log(`账号[${this.index}] 签到状态: ${data?.hasSignedToday ? "已签" : "未签"} 连续${data?.continuousDays || 0}天 总${data?.totalDays || 0}天 今日${data?.todayPoints ?? "未知"}积分`); |
| 232 | } |
| 233 | return data; |
| 234 | } |
| 235 | |
| 236 | async doSign() { |
| 237 | if (this.signInfo?.hasSignedToday) { |
no test coverage detected