| 433 | } |
| 434 | msg(e = t, s = "", i = "", r) { |
| 435 | const o = t => { |
| 436 | if (!t) return t; |
| 437 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { |
| 438 | "open-url": t |
| 439 | } : this.isSurge() ? { |
| 440 | url: t |
| 441 | } : void 0; |
| 442 | if ("object" == typeof t) { |
| 443 | if (this.isLoon()) { |
| 444 | let e = t.openUrl || t.url || t["open-url"], |
| 445 | s = t.mediaUrl || t["media-url"]; |
| 446 | return { |
| 447 | openUrl: e, |
| 448 | mediaUrl: s |
| 449 | } |
| 450 | } |
| 451 | if (this.isQuanX()) { |
| 452 | let e = t["open-url"] || t.url || t.openUrl, |
| 453 | s = t["media-url"] || t.mediaUrl; |
| 454 | return { |
| 455 | "open-url": e, |
| 456 | "media-url": s |
| 457 | } |
| 458 | } |
| 459 | if (this.isSurge()) { |
| 460 | let e = t.url || t.openUrl || t["open-url"]; |
| 461 | return { |
| 462 | url: e |
| 463 | } |
| 464 | } |
| 465 | } |
| 466 | }; |
| 467 | if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { |
| 468 | let t = ["", "==============📣系统通知📣=============="]; |
| 469 | t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) |