()
| 216 | } |
| 217 | |
| 218 | async showCheckinPage() { |
| 219 | try { |
| 220 | const data = await this.request({ path: "/wscump/checkin/show_checkin_page_v2.json" }); |
| 221 | this.checkinId = data?.checkinId; |
| 222 | this.isShow = !!data?.isShow; |
| 223 | $.log(`账号[${this.index}] 签到活动: checkinId=${this.checkinId || "未获取"} isShow=${this.isShow}`); |
| 224 | } catch (e) { |
| 225 | $.log(`账号[${this.index}] 获取签到活动失败: ${e.message || e}`); |
| 226 | if (/access_token|token|登录|授权|invalid session/i.test(String(e.message || e))) this.removeCachedToken(); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | async doCheckin() { |
| 231 | if (!this.checkinId) { |
no test coverage detected