| 322 | } |
| 323 | |
| 324 | printSignInfo(signInfo) { |
| 325 | const parts = [ |
| 326 | `连续${signInfo.continousSignDays ?? "未知"}天`, |
| 327 | `积分${signInfo.currentIntegral ?? "未知"}`, |
| 328 | ]; |
| 329 | if (signInfo.changeIntegeral) parts.push(`本次+${signInfo.changeIntegeral}`); |
| 330 | if (signInfo.couponName) parts.push(`券:${signInfo.couponName}`); |
| 331 | if (signInfo.signRewardMsg) parts.push(String(signInfo.signRewardMsg).replace(/<[^>]+>/g, "")); |
| 332 | |
| 333 | const signedNow = signInfo.hasSign === false; |
| 334 | const signedBefore = signInfo.hasSign === true; |
| 335 | $.log(`账号[${this.index}] ${signedNow ? "签到成功" : signedBefore ? "今日已签到" : "签到状态"},${parts.join(",")}`); |
| 336 | } |
| 337 | |
| 338 | async run() { |
| 339 | $.log(`\n账号[${this.index}] ${mask(this.openid || this.cacheKey)}`); |