| 1793 | } |
| 1794 | |
| 1795 | msg(e = t, s = "", i = "", r) { |
| 1796 | const o = t => { |
| 1797 | if (!t) return t; |
| 1798 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0; |
| 1799 | if ("object" == typeof t) { |
| 1800 | if (this.isLoon()) { |
| 1801 | let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; |
| 1802 | return {openUrl: e, mediaUrl: s} |
| 1803 | } |
| 1804 | if (this.isQuanX()) { |
| 1805 | let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; |
| 1806 | return {"open-url": e, "media-url": s} |
| 1807 | } |
| 1808 | if (this.isSurge()) { |
| 1809 | let e = t.url || t.openUrl || t["open-url"]; |
| 1810 | return {url: e} |
| 1811 | } |
| 1812 | } |
| 1813 | }; |
| 1814 | if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { |
| 1815 | let t = ["", "==============📣系统通知📣=============="]; |
| 1816 | t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) |
| 1817 | } |
| 1818 | } |
| 1819 | |
| 1820 | log(...t) { |
| 1821 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) |