(data)
| 545 | function wait(n) { return new Promise(function (resolve) { setTimeout(resolve, n * 1000) }) } |
| 546 | // 双平台log输出 |
| 547 | function DoubleLog(data) { if ($.isNode()) { if (data) { console.log(`${data}`); msg += `\n ${data}` } } else { console.log(`${data}`); msg += `\n ${data}` } } |
| 548 | // 发送消息 |
| 549 | async 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 |
no test coverage detected