This commit is contained in:
smallfawn
2025-03-09 20:30:49 +08:00
parent 895a6e2a02
commit 1b086b4af0
7 changed files with 58 additions and 2 deletions

View File

@@ -189,6 +189,14 @@ function Env(t, s) {
}
async sendMsg() {
this.log("==============📣Center 通知📣==============")
for (let item of this.notifyStr) {
if (Object.prototype.toString.call(item) === '[object Object]') {
item = JSON.stringify(item)
}
if(Object.prototype.toString.call(arg) === '[object Array]'){
item = item.join(this.logSeparator)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {