()
| 563 | } |
| 564 | |
| 565 | async tryTaskSign() { |
| 566 | try { |
| 567 | const tasks = await this.getTaskList(); |
| 568 | const signTasks = tasks.filter((task) => this.isSignTask(task)); |
| 569 | if (!signTasks.length) { |
| 570 | this.summary.sign = "未找到签到/每日任务"; |
| 571 | this.log("未找到签到/每日任务"); |
| 572 | return; |
| 573 | } |
| 574 | for (const task of signTasks) await this.handleTask(task); |
| 575 | } catch (e) { |
| 576 | this.summary.sign = `任务签到失败: ${e.message || e}`; |
| 577 | this.log(`任务签到失败: ${e.message || e}`); |
| 578 | } |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | !(async () => { |
no test coverage detected