mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
A
This commit is contained in:
@@ -205,6 +205,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()) {
|
||||
|
||||
|
||||
@@ -248,14 +248,22 @@ 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()) {
|
||||
|
||||
await notify.sendNotify(this.name, message);
|
||||
await notify.sendNotify(this.name, message);
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
isNode() {
|
||||
return "undefined" != typeof module && !!module.exports;
|
||||
}
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
|
||||
@@ -164,6 +164,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()) {
|
||||
|
||||
|
||||
@@ -167,6 +167,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()) {
|
||||
|
||||
|
||||
@@ -194,6 +194,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()) {
|
||||
|
||||
|
||||
8
蔚来.js
8
蔚来.js
@@ -102,6 +102,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()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user