MCPcopy Create free account
hub / github.com/Toulu-debug/enen / msg

Method msg

iOS_Cookie.js:258–281  ·  view source on GitHub ↗
(e = t, s = "", i = "", r)

Source from the content-addressed store, hash-verified

256 }
257
258 msg(e = t, s = "", i = "", r) {
259 const o = t => {
260 if (!t) return t;
261 if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0;
262 if ("object" == typeof t) {
263 if (this.isLoon()) {
264 let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"];
265 return {openUrl: e, mediaUrl: s}
266 }
267 if (this.isQuanX()) {
268 let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl;
269 return {"open-url": e, "media-url": s}
270 }
271 if (this.isSurge()) {
272 let e = t.url || t.openUrl || t["open-url"];
273 return {url: e}
274 }
275 }
276 };
277 if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) {
278 let t = ["", "==============📣系统通知📣=============="];
279 t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t)
280 }
281 }
282
283 log(...t) {
284 t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator))

Callers 1

iOS_Cookie.jsFile · 0.45

Calls 6

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

Tested by

no test coverage detected