| 4200 | } |
| 4201 | } |
| 4202 | async openSend() { |
| 4203 | const e = await this.api.getMsgPushStatus(); |
| 4204 | if (1 === e?.result?.pushOn) |
| 4205 | for (const t of [1, 2]) { |
| 4206 | const r = 1 === t ? "firstTaskStatus" : "secondTaskStatus"; |
| 4207 | if ([2, 3].includes(e.result[r])) { |
| 4208 | const e = await this.api.obtainMsgPushReward(t); |
| 4209 | this.log(`通知奖励${t}: ${e?.result?.description||"已处理"}`) |
| 4210 | } |
| 4211 | } else this.log("通知权限未开启") |
| 4212 | } |
| 4213 | async uploadLargeFile() { |
| 4214 | this.config.uploadDirId ? (await this.api.uploadLargeFile(), this.log(`大文件上传任务已执行: ${this.config.uploadFilename}`)) : this.log("跳过大文件上传: 缺少 dirId") |
| 4215 | } |