()
| 224 | } |
| 225 | |
| 226 | async doCheckin() { |
| 227 | if (!this.checkinId) { |
| 228 | $.log(`账号[${this.index}] 未获取到 checkinId,跳过签到`); |
| 229 | return; |
| 230 | } |
| 231 | try { |
| 232 | const data = await this.request({ |
| 233 | path: "/wscump/checkin/checkinV2.json", |
| 234 | params: { checkinId: this.checkinId }, |
| 235 | }); |
| 236 | const awards = (data?.list || []).map((item) => item?.infos?.title).filter(Boolean).join(", "); |
| 237 | $.log(`账号[${this.index}] 签到成功: ${data?.desc || ""}${awards ? ` ${awards}` : ""}`); |
| 238 | } catch (e) { |
| 239 | $.log(`账号[${this.index}] 签到失败: ${e.message || e}`); |
| 240 | if (/access_token|token|登录|授权|请先登录/i.test(String(e.message || e))) this.removeCachedToken(); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | async getPoints() { |
| 245 | try { |
no test coverage detected