mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2026-01-16 07:40:42 +08:00
Compare commits
13 Commits
0324b53d97
...
41bafc3562
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41bafc3562 | ||
|
|
bbefd0cefe | ||
|
|
1b086b4af0 | ||
|
|
895a6e2a02 | ||
|
|
422ce90874 | ||
|
|
9dce9b9dad | ||
|
|
047bc46c22 | ||
|
|
3bc3a9b063 | ||
|
|
fd3394a1c3 | ||
|
|
77449894fa | ||
|
|
747e680a0d | ||
|
|
d0da3bedd8 | ||
|
|
3e43493688 |
2
hyjk.js
2
hyjk.js
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
global['window'] = {}
|
global['window'] = {}
|
||||||
global['navigator'] = {}
|
global['navigator'] = {}
|
||||||
const JSEncrypt = require("encryptlong")
|
const { JSEncrypt } = require("encryptlong")
|
||||||
const JsRsaSign = require("jsrsasign")
|
const JsRsaSign = require("jsrsasign")
|
||||||
const $ = new Env("荷叶健康小程序-果园[免费领水果]");
|
const $ = new Env("荷叶健康小程序-果园[免费领水果]");
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
|
|||||||
@ -205,6 +205,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
@ -248,14 +248,22 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
await notify.sendNotify(this.name, message);
|
await notify.sendNotify(this.name, message);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
isNode() {
|
isNode() {
|
||||||
return "undefined" != typeof module && !!module.exports;
|
return "undefined" != typeof module && !!module.exports;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -189,6 +189,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
@ -164,6 +164,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
@ -167,6 +167,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
@ -194,6 +194,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
8
蔚来.js
8
蔚来.js
@ -102,6 +102,14 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
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);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
if (this.isNode()) {
|
if (this.isNode()) {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user