mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-18 15:54:44 +08:00
F
This commit is contained in:
@@ -247,18 +247,20 @@ function Env(t, s) {
|
||||
this.log(`共找到${this.userCount}个账号`);
|
||||
}
|
||||
async sendMsg() {
|
||||
this.log("==============📣Center 通知📣==============")
|
||||
for (let item of this.notifyStr) {
|
||||
if (Object.prototype.toString.call(item) === '[object Object]'||Object.prototype.toString.call(item) === '[object Array]') {
|
||||
item = JSON.stringify(item)
|
||||
}
|
||||
}
|
||||
let message = this.notifyStr.join(this.logSeparator);
|
||||
if (this.isNode()) {
|
||||
await notify.sendNotify(this.name, message);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
this.log("==============📣Center 通知📣==============")
|
||||
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||
}
|
||||
}
|
||||
|
||||
let message = this.notifyStr.join(this.logSeparator);
|
||||
if (this.isNode()) {
|
||||
await notify.sendNotify(this.name, message);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
isNode() {
|
||||
return "undefined" != typeof module && !!module.exports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user