This commit is contained in:
Faker
2022-04-13 17:59:10 +08:00
parent 89675e4b83
commit 51ae1a43d1
2 changed files with 168 additions and 126 deletions

View File

@@ -13,6 +13,12 @@ if ($.isNode()) {
cookiesArr.push(jdCookieNode[item])
})
}
let WP_APP_TOKEN_ONE = "";
if ($.isNode()) {
if (process.env.WP_APP_TOKEN_ONE) {
WP_APP_TOKEN_ONE = process.env.WP_APP_TOKEN_ONE;
}
}
let arrCkPtPin = [];
let arrEnvPtPin = [];
@@ -21,6 +27,15 @@ let arrEnvOnebyOne = [];
let strCk = "";
let strNoFoundCk = "";
let strMessage = "";
let strNotify = "";
if ($.isNode() && process.env.SEQCK_DisableCKNOTIFY) {
strNotify=process.env.SEQCK_DisableCKNOTIFY;
console.log(`检测到设定了公告,禁用的CK将推送信息...`);
strNotify = `【✨✨✨✨公告✨✨✨✨】\n`+strNotify;
console.log(strNotify+"\n");
}else{
WP_APP_TOKEN_ONE = "";
}
const fs = require('fs');
let TempCKUid = [];
@@ -69,14 +84,18 @@ if (UidFileexists) {
var tempptpin = arrEnvPtPin[i];
var intSeq = inArray(tempptpin, arrCkPtPin);
if (intSeq == -1) {
strNoFoundCk += "【"+(i + 1) + "】" + tempptpin;
strNoFoundCk += "【" + (i + 1) + "】" + tempptpin;
if (arrEnvStatus[i] == 1) {
strNoFoundCk += "(状态已禁用)"
if ($.isNode() && WP_APP_TOKEN_ONE) {
await notify.sendNotifybyWxPucher("账号下线通知", strNotify, tempptpin);
await $.wait(1000);
}
}
if (arrEnvOnebyOne[i]) {
if (arrEnvOnebyOne[i]) {
strNoFoundCk += "(账号已启用一对一推送)"
}
strNoFoundCk +="\n";
strNoFoundCk += "\n";
}
}