Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Commit bb11252

Browse files
committed
Update jd_CheckCK.js
1 parent ce7a06d commit bb11252

1 file changed

Lines changed: 34 additions & 21 deletions

File tree

jd_CheckCK.js

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const api = got.extend({
2323

2424
let ShowSuccess = "false",
2525
CKAlwaysNotify = "false",
26-
CKAutoEnable = "true",
26+
CKAutoEnable = "false",
2727
NoWarnError = "false";
2828

2929
let MessageUserGp2 = "";
@@ -159,7 +159,12 @@ if ($.isNode() && process.env.CHECKCK_ALLNOTIFY) {
159159
TempDisableMessage = '';
160160
TempEnableMessage = '';
161161
TempOErrorMessage = '';
162-
162+
iswait=true;
163+
var strnowstatus = await getstatus(tempid);
164+
if (strnowstatus == 99) {
165+
strnowstatus = envs[i].status;
166+
}
167+
163168
console.log(`开始检测【京东账号${$.index}${$.UserName2} ....\n`);
164169
if (MessageUserGp4) {
165170
userIndex4 = MessageUserGp4.findIndex((item) => item === $.UserName);
@@ -193,28 +198,34 @@ if ($.isNode() && process.env.CHECKCK_ALLNOTIFY) {
193198
IndexAll += 1;
194199
ReturnMessageTitle = `【账号${IndexAll}🆔】${$.UserName2}`;
195200
}
196-
197-
await TotalBean();
198-
if ($.NoReturn) {
199-
console.log(`接口1检测失败,尝试使用接口2....\n`);
200-
await isLoginByX1a0He();
201-
} else {
202-
if ($.isLogin) {
203-
if (!$.nickName) {
204-
console.log(`获取的别名为空,尝试使用接口2验证....\n`);
205-
await isLoginByX1a0He();
206-
} else {
207-
console.log(`成功获取到别名: ${$.nickName},Pass!\n`);
208-
}
209-
}
210-
}
211-
201+
if (strnowstatus == 1 && CKAutoEnable== "false") {
202+
console.log(`账号是禁用状态,跳过检测....\n`);
203+
$.isLogin = false;
204+
iswait=false;
205+
}
206+
else {
207+
208+
await TotalBean();
209+
if ($.NoReturn) {
210+
console.log(`接口1检测失败,尝试使用接口2....\n`);
211+
await isLoginByX1a0He();
212+
} else {
213+
if ($.isLogin) {
214+
if (!$.nickName) {
215+
console.log(`获取的别名为空,尝试使用接口2验证....\n`);
216+
await isLoginByX1a0He();
217+
} else {
218+
console.log(`成功获取到别名: ${$.nickName},Pass!\n`);
219+
}
220+
}
221+
}
222+
}
212223
if ($.error) {
213224
console.log(`有错误,跳出....`);
214225
TempOErrorMessage = $.error;
215226

216227
} else {
217-
const strnowstatus = await getstatus(tempid);
228+
strnowstatus = await getstatus(tempid);
218229
if (strnowstatus == 99) {
219230
strnowstatus = envs[i].status;
220231
}
@@ -312,8 +323,10 @@ if ($.isNode() && process.env.CHECKCK_ALLNOTIFY) {
312323
}
313324

314325
}
315-
console.log(`等待2秒....... \n`);
316-
await $.wait(2 * 1000)
326+
if(iswait){
327+
console.log(`等待2秒....... \n`);
328+
await $.wait(2 * 1000);
329+
}
317330
}
318331

319332
if ($.isNode()) {

0 commit comments

Comments
 (0)