| 500 | return t; |
| 501 | } |
| 502 | msg(s = t, e = "", i = "", o) { |
| 503 | const h = (t) => |
| 504 | !t || (!this.isLoon() && this.isSurge()) |
| 505 | ? t |
| 506 | : "string" == typeof t |
| 507 | ? this.isLoon() |
| 508 | ? t |
| 509 | : this.isQuanX() |
| 510 | ? { "open-url": t } |
| 511 | : void 0 |
| 512 | : "object" == typeof t && (t["open-url"] || t["media-url"]) |
| 513 | ? this.isLoon() |
| 514 | ? t["open-url"] |
| 515 | : this.isQuanX() |
| 516 | ? t |
| 517 | : void 0 |
| 518 | : void 0; |
| 519 | this.isMute || |
| 520 | (this.isSurge() || this.isLoon() |
| 521 | ? $notification.post(s, e, i, h(o)) |
| 522 | : this.isQuanX() && $notify(s, e, i, h(o))); |
| 523 | let logs = ['', '==============📣系统通知📣==============']; |
| 524 | logs.push(t); |
| 525 | e ? logs.push(e) : ''; |
| 526 | i ? logs.push(i) : ''; |
| 527 | console.log(logs.join('\n')); |
| 528 | this.logs = this.logs.concat(logs); |
| 529 | } |
| 530 | log(...t) { |
| 531 | t.length > 0 && (this.logs = [...this.logs, ...t]), |
| 532 | console.log(t.join(this.logSeparator)); |