()
| 239 | } |
| 240 | |
| 241 | async run() { |
| 242 | $.log(`\n账号[${this.index}] ${mask(this.openid || this.cacheKey)}`); |
| 243 | await this.ensureLogin(); |
| 244 | await this.getUserInfo(); |
| 245 | |
| 246 | const before = await this.getSignInfo(); |
| 247 | if (before.currentSignIn) { |
| 248 | $.log(`账号[${this.index}] 今日已签到,连续 ${before.continuityDay ?? "未知"} 天,总签到积分 ${before.totalSignInScore ?? "未知"}`); |
| 249 | return; |
| 250 | } |
| 251 | |
| 252 | const score = await this.submitSign(); |
| 253 | const after = await this.getSignInfo(); |
| 254 | $.log(`账号[${this.index}] 签到成功,获得 ${score ?? "未知"} 积分,连续 ${after.continuityDay ?? "未知"} 天,总签到积分 ${after.totalSignInScore ?? "未知"}`); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | !(async () => { |
no test coverage detected