MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / DoubleLog

Function DoubleLog

jlqc.js:547–547  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

545function wait(n) { return new Promise(function (resolve) { setTimeout(resolve, n * 1000) }) }
546// 双平台log输出
547function DoubleLog(data) { if ($.isNode()) { if (data) { console.log(`${data}`); msg += `\n ${data}` } } else { console.log(`${data}`); msg += `\n ${data}` } }
548// 发送消息
549async function SendMsg(message) { if (!message) return; if (Notify > 0) { if ($.isNode()) { await notify.sendNotify($.name, message) } else { $.msg($.name, '', message) } } else { console.log(message) } }
550// 完整 Env

Callers 9

info_pointMethod · 0.70
task_shareMethod · 0.70
task_signMethod · 0.70
task_create1Method · 0.70
task_create2Method · 0.70
task_commentMethod · 0.70
task_delatMethod · 0.70
task_artlistMethod · 0.70
getNoticeFunction · 0.70

Calls 2

isNodeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected