(t, e)
| 444 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) |
| 445 | } |
| 446 | logErr(t, e) { |
| 447 | switch (this.getEnv()) { |
| 448 | case 'Surge': |
| 449 | case 'Loon': |
| 450 | case 'Stash': |
| 451 | case 'Shadowrocket': |
| 452 | case 'Quantumult X': |
| 453 | default: |
| 454 | this.log('', `❗️${this.name}, 错误!`, t) |
| 455 | break |
| 456 | case 'Node.js': |
| 457 | this.log('', `❗️${this.name}, 错误!`, t.stack) |
| 458 | } |
| 459 | } |
| 460 | wait(t) { |
| 461 | return new Promise(e => setTimeout(e, t)) |
| 462 | } |