MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / msg

Method msg

wxapp/miaoyouHome.js:424–451  ·  view source on GitHub ↗
(s = t, e = "", i = "", o)

Source from the content-addressed store, hash-verified

422 return t;
423 }
424 msg(s = t, e = "", i = "", o) {
425 const h = (t) =>
426 !t || (!this.isLoon() && this.isSurge())
427 ? t
428 : "string" == typeof t
429 ? this.isLoon()
430 ? t
431 : this.isQuanX()
432 ? { "open-url": t }
433 : void 0
434 : "object" == typeof t && (t["open-url"] || t["media-url"])
435 ? this.isLoon()
436 ? t["open-url"]
437 : this.isQuanX()
438 ? t
439 : void 0
440 : void 0;
441 this.isMute ||
442 (this.isSurge() || this.isLoon()
443 ? $notification.post(s, e, i, h(o))
444 : this.isQuanX() && $notify(s, e, i, h(o)));
445 let logs = ['', '==============📣系统通知📣=============='];
446 logs.push(t);
447 e ? logs.push(e) : '';
448 i ? logs.push(i) : '';
449 console.log(logs.join('\n'));
450 this.logs = this.logs.concat(logs);
451 }
452 log(...t) {
453 t.length > 0 && (this.logs = [...this.logs, ...t]),
454 console.log(t.join(this.logSeparator));

Callers 1

SendMsgMethod · 0.45

Calls 6

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

Tested by

no test coverage detected