()
| 234 | } |
| 235 | |
| 236 | async run() { |
| 237 | try { |
| 238 | this.log("开始执行"); |
| 239 | await this.login(); |
| 240 | await this.queryUser(); |
| 241 | await this.sign(); |
| 242 | await this.queryTasks(); |
| 243 | await this.queryUser(); |
| 244 | } catch (e) { |
| 245 | this.log(`执行失败: ${e.message || e}`); |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | async function main() { |