diff --git a/wxapp/anmuxi.js b/wxapp/anmuxi.js index 690c0b4..3e7795f 100644 --- a/wxapp/anmuxi.js +++ b/wxapp/anmuxi.js @@ -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()) { diff --git a/wxapp/bnmdhg_wx.js b/wxapp/bnmdhg_wx.js index 162e288..e42ba74 100644 --- a/wxapp/bnmdhg_wx.js +++ b/wxapp/bnmdhg_wx.js @@ -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; } diff --git a/wxapp/hdl.js b/wxapp/hdl.js index a449cef..ec0bf81 100644 --- a/wxapp/hdl.js +++ b/wxapp/hdl.js @@ -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()) { diff --git a/wxapp/kangshifu.js b/wxapp/kangshifu.js index b38b228..cda5ec6 100644 --- a/wxapp/kangshifu.js +++ b/wxapp/kangshifu.js @@ -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()) { diff --git a/wxapp/可口可乐吧.js b/wxapp/可口可乐吧.js index 4c8bdff..fce0d70 100644 --- a/wxapp/可口可乐吧.js +++ b/wxapp/可口可乐吧.js @@ -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()) { diff --git a/wxapp/杰士邦安心福利社.js b/wxapp/杰士邦安心福利社.js index a7f9913..f56783b 100644 --- a/wxapp/杰士邦安心福利社.js +++ b/wxapp/杰士邦安心福利社.js @@ -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()) { diff --git a/蔚来.js b/蔚来.js index 205fa38..9cbb177 100644 --- a/蔚来.js +++ b/蔚来.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()) {