This commit is contained in:
Faker 2022-04-14 15:37:53 +08:00
parent 7a7fe4bf63
commit b0d285bfe7
2 changed files with 39 additions and 59 deletions

View File

@ -68,12 +68,11 @@ if (UidFileexists) {
cookie = cookiesArr[i]; cookie = cookiesArr[i];
var tempptpin = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]); var tempptpin = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
var intSeq = inArray(tempptpin, arrEnvPtPin); var intSeq = inArray(tempptpin, arrEnvPtPin);
if (intSeq != -1) { if (intSeq != -1) {
intSeq += 1;
arrCkPtPin.push(tempptpin); arrCkPtPin.push(tempptpin);
strCk += "【"+intSeq + "】" + tempptpin ; strCk += "【"+(intSeq+1) + "】" + tempptpin ;
if (arrEnvOnebyOne[i]) { if (arrEnvOnebyOne[intSeq]) {
strCk += "(账号已启用一对一推送)" strCk += "(已启用一对一推送)"
} }
strCk +="\n"; strCk +="\n";
} }
@ -86,14 +85,14 @@ if (UidFileexists) {
if (intSeq == -1) { if (intSeq == -1) {
strNoFoundCk += "【" + (i + 1) + "】" + tempptpin; strNoFoundCk += "【" + (i + 1) + "】" + tempptpin;
if (arrEnvStatus[i] == 1) { if (arrEnvStatus[i] == 1) {
strNoFoundCk += "(状态已禁用)" strNoFoundCk += "(已禁用)"
if ($.isNode() && WP_APP_TOKEN_ONE) { if ($.isNode() && WP_APP_TOKEN_ONE) {
await notify.sendNotifybyWxPucher("账号下线通知", strNotify, tempptpin); await notify.sendNotifybyWxPucher("账号下线通知", strNotify, tempptpin);
await $.wait(1000); await $.wait(1000);
} }
} }
if (arrEnvOnebyOne[i]) { if (arrEnvOnebyOne[i]) {
strNoFoundCk += "(账号已启用一对一推送)" strNoFoundCk += "(已启用一对一推送)"
} }
strNoFoundCk += "\n"; strNoFoundCk += "\n";
@ -118,7 +117,7 @@ if (UidFileexists) {
function inArray(search, array) { function inArray(search, array) {
var lnSeq = -1; var lnSeq = -1;
for (var i in array) { for (let i = 0; i < array.length; i++) {
if (array[i] == search) { if (array[i] == search) {
lnSeq = i; lnSeq = i;
} }
@ -126,6 +125,7 @@ function inArray(search, array) {
return parseInt(lnSeq); return parseInt(lnSeq);
} }
function getuuid(strRemark, PtPin) { function getuuid(strRemark, PtPin) {
var strTempuuid = ""; var strTempuuid = "";
if (strRemark) { if (strRemark) {

File diff suppressed because one or more lines are too long