MCPcopy Create free account
hub / github.com/Semporia/Scripts / o

Method o

jd_redPacket.js:1796–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

isLoonMethod · 0.45
isQuanXMethod · 0.45
isSurgeMethod · 0.45

Tested by

no test coverage detected