mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 15:25:10 +08:00
F
This commit is contained in:
@@ -205,11 +205,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]'||Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
@@ -247,18 +247,20 @@ function Env(t, s) {
|
|||||||
this.log(`共找到${this.userCount}个账号`);
|
this.log(`共找到${this.userCount}个账号`);
|
||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]'||Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
}
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
let message = this.notifyStr.join(this.logSeparator);
|
}
|
||||||
if (this.isNode()) {
|
|
||||||
await notify.sendNotify(this.name, message);
|
let message = this.notifyStr.join(this.logSeparator);
|
||||||
} else {
|
if (this.isNode()) {
|
||||||
}
|
await notify.sendNotify(this.name, message);
|
||||||
}
|
} else {
|
||||||
|
}
|
||||||
|
}
|
||||||
isNode() {
|
isNode() {
|
||||||
return "undefined" != typeof module && !!module.exports;
|
return "undefined" != typeof module && !!module.exports;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,11 +189,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]' || Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class Task extends Public {
|
|||||||
|
|
||||||
})()
|
})()
|
||||||
.catch((e) => console.log(e))
|
.catch((e) => console.log(e))
|
||||||
.finally( () => $.done());
|
.finally(() => $.done());
|
||||||
|
|
||||||
async function getNotice() {
|
async function getNotice() {
|
||||||
let options = {
|
let options = {
|
||||||
@@ -164,11 +164,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]' || Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
@@ -167,11 +167,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]'||Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
@@ -194,11 +194,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]'||Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
8
蔚来.js
8
蔚来.js
@@ -102,11 +102,13 @@ function Env(t, s) {
|
|||||||
}
|
}
|
||||||
async sendMsg() {
|
async sendMsg() {
|
||||||
this.log("==============📣Center 通知📣==============")
|
this.log("==============📣Center 通知📣==============")
|
||||||
for (let item of this.notifyStr) {
|
for (let i = 0; i < this.notifyStr.length; i++) {
|
||||||
if (Object.prototype.toString.call(item) === '[object Object]' || Object.prototype.toString.call(item) === '[object Array]') {
|
if (Object.prototype.toString.call(this.notifyStr[i]) === '[object Object]' ||
|
||||||
item = JSON.stringify(item)
|
Object.prototype.toString.call(this.notifyStr[i]) === '[object Array]') {
|
||||||
|
this.notifyStr[i] = JSON.stringify(this.notifyStr[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user