mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 08:54:08 +08:00
sync
This commit is contained in:
25
jd_CkSeq.js
25
jd_CkSeq.js
@@ -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";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user