| 450 | return t; |
| 451 | } |
| 452 | msg(s = t, e = "", i = "", o) { |
| 453 | const h = (t) => |
| 454 | !t || (!this.isLoon() && this.isSurge()) |
| 455 | ? t |
| 456 | : "string" == typeof t |
| 457 | ? this.isLoon() |
| 458 | ? t |
| 459 | : this.isQuanX() |
| 460 | ? { "open-url": t } |
| 461 | : void 0 |
| 462 | : "object" == typeof t && (t["open-url"] || t["media-url"]) |
| 463 | ? this.isLoon() |
| 464 | ? t["open-url"] |
| 465 | : this.isQuanX() |
| 466 | ? t |
| 467 | : void 0 |
| 468 | : void 0; |
| 469 | this.isMute || |
| 470 | (this.isSurge() || this.isLoon() |
| 471 | ? $notification.post(s, e, i, h(o)) |
| 472 | : this.isQuanX() && $notify(s, e, i, h(o))); |
| 473 | let logs = ['', '==============📣系统通知📣==============']; |
| 474 | logs.push(t); |
| 475 | e ? logs.push(e) : ''; |
| 476 | i ? logs.push(i) : ''; |
| 477 | console.log(logs.join('\n')); |
| 478 | this.logs = this.logs.concat(logs); |
| 479 | } |
| 480 | log(...t) { |
| 481 | t.length > 0 && (this.logs = [...this.logs, ...t]), |
| 482 | console.log(t.join(this.logSeparator)); |