Compare commits

...

13 Commits

Author SHA1 Message Date
smallfawn
41bafc3562 修复通知 2025-03-09 20:37:51 +08:00
smallfawn
bbefd0cefe A 2025-03-09 20:31:58 +08:00
smallfawn
1b086b4af0 A 2025-03-09 20:30:49 +08:00
smallfawn
895a6e2a02 Update dw.js 2025-03-09 20:00:31 +08:00
smallfawn
422ce90874 Update dw.js 2025-03-09 19:30:07 +08:00
smallfawn
9dce9b9dad Update dw.js 2025-03-09 19:09:51 +08:00
smallfawn
047bc46c22 Update dw.js 2025-03-09 18:54:34 +08:00
smallfawn
3bc3a9b063 修复 部分485报错 2025-03-09 18:27:26 +08:00
smallfawn
fd3394a1c3 add 签到 2025-03-09 17:19:01 +08:00
smallfawn
77449894fa add 开签 2025-03-09 17:15:13 +08:00
smallfawn
747e680a0d Update dw.js 2025-03-09 14:20:32 +08:00
smallfawn
d0da3bedd8 Update hyjk.js 2025-03-09 13:51:21 +08:00
smallfawn
3e43493688 Update dw.js 2025-03-09 13:50:16 +08:00
9 changed files with 74 additions and 10 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,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 = JSON.stringify(item)
}
}
let message = this.notifyStr.join(this.logSeparator);
if (this.isNode()) {

View File

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

View File

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

View File

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

View File

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

View File

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