Compare commits

..

No commits in common. "41bafc35622132ca67eac796479a388d2f3b232b" and "0324b53d979e11c32208b41083a15c4690a38987" have entirely different histories.

9 changed files with 10 additions and 74 deletions

22
dw.js

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
*/
global['window'] = {}
global['navigator'] = {}
const { JSEncrypt } = require("encryptlong")
const JSEncrypt = require("encryptlong")
const JsRsaSign = require("jsrsasign")
const $ = new Env("荷叶健康小程序-果园[免费领水果]");
const notify = $.isNode() ? require('./sendNotify') : '';

View File

@ -205,14 +205,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

@ -248,22 +248,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 = JSON.stringify(item)
}
}
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;
}

View File

@ -189,14 +189,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

@ -164,14 +164,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

@ -167,14 +167,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

@ -194,14 +194,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

@ -102,14 +102,6 @@ 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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {