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

Method msg

jd_superMarket.js:2335–2358  ·  view source on GitHub ↗
(e = t, s = "", i = "", r)

Source from the content-addressed store, hash-verified

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))

Callers 4

jd_superMarket.jsFile · 0.45
showMsgFunction · 0.45
businessCircleActivityFunction · 0.45
jsonParseFunction · 0.45

Calls 6

oFunction · 0.70
isSurgeMethod · 0.45
isLoonMethod · 0.45
postMethod · 0.45
isQuanXMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected