| 422 | return t; |
| 423 | } |
| 424 | msg(s = t, e = "", i = "", o) { |
| 425 | const h = (t) => |
| 426 | !t || (!this.isLoon() && this.isSurge()) |
| 427 | ? t |
| 428 | : "string" == typeof t |
| 429 | ? this.isLoon() |
| 430 | ? t |
| 431 | : this.isQuanX() |
| 432 | ? { "open-url": t } |
| 433 | : void 0 |
| 434 | : "object" == typeof t && (t["open-url"] || t["media-url"]) |
| 435 | ? this.isLoon() |
| 436 | ? t["open-url"] |
| 437 | : this.isQuanX() |
| 438 | ? t |
| 439 | : void 0 |
| 440 | : void 0; |
| 441 | this.isMute || |
| 442 | (this.isSurge() || this.isLoon() |
| 443 | ? $notification.post(s, e, i, h(o)) |
| 444 | : this.isQuanX() && $notify(s, e, i, h(o))); |
| 445 | let logs = ['', '==============📣系统通知📣==============']; |
| 446 | logs.push(t); |
| 447 | e ? logs.push(e) : ''; |
| 448 | i ? logs.push(i) : ''; |
| 449 | console.log(logs.join('\n')); |
| 450 | this.logs = this.logs.concat(logs); |
| 451 | } |
| 452 | log(...t) { |
| 453 | t.length > 0 && (this.logs = [...this.logs, ...t]), |
| 454 | console.log(t.join(this.logSeparator)); |