(e = t, s = "", i = "", r)
| 2333 | } |
| 2334 | |
| 2335 | msg(e = t, s = "", i = "", r) { |
| 2336 | const o = t => { |
| 2337 | if (!t) return t; |
| 2338 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0; |
| 2339 | if ("object" == typeof t) { |
| 2340 | if (this.isLoon()) { |
| 2341 | let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; |
| 2342 | return {openUrl: e, mediaUrl: s} |
| 2343 | } |
| 2344 | if (this.isQuanX()) { |
| 2345 | let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; |
| 2346 | return {"open-url": e, "media-url": s} |
| 2347 | } |
| 2348 | if (this.isSurge()) { |
| 2349 | let e = t.url || t.openUrl || t["open-url"]; |
| 2350 | return {url: e} |
| 2351 | } |
| 2352 | } |
| 2353 | }; |
| 2354 | if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { |
| 2355 | let t = ["", "==============📣系统通知📣=============="]; |
| 2356 | t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) |
| 2357 | } |
| 2358 | } |
| 2359 | |
| 2360 | log(...t) { |
| 2361 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) |
no test coverage detected