()
| 220 | } |
| 221 | |
| 222 | async showCheckinPage() { |
| 223 | try { |
| 224 | const data = await this.request({ path: "/wscump/checkin/show_checkin_page_v2.json" }); |
| 225 | this.checkinId = data?.checkinId; |
| 226 | this.isShow = !!data?.isShow; |
| 227 | $.log(`账号[${this.index}] 签到活动: checkinId=${this.checkinId || "未获取"} isShow=${this.isShow}`); |
| 228 | } catch (e) { |
| 229 | $.log(`账号[${this.index}] 获取签到活动失败: ${e.message || e}`); |
| 230 | if (isTokenError(e.message || e)) this.removeCachedToken(); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | async doCheckin() { |
| 235 | if (!this.checkinId) { |
no test coverage detected