Update sysxc.js

This commit is contained in:
smallfawn
2023-04-16 11:34:08 +08:00
committed by GitHub
parent 911250ef9f
commit baacd3b364

View File

@@ -58,6 +58,10 @@ class UserInfo {
//this.data1 = ck[0] //this.data1 = ck[0]
this.ckStatus = true this.ckStatus = true
this.timestamp = ts13() this.timestamp = ts13()
this.signInStatus = ''//签到状态
this.getVcodeStatus = ''//HK 获取状态
this.checkVcodeStatus = ''//HK 验证状态
} }
async getVcode() { async getVcode() {
@@ -113,15 +117,15 @@ class UserInfo {
aesRes += '==' aesRes += '=='
//console.log(`加密后${aesRes}`); //console.log(`加密后${aesRes}`);
//console.log(VcodeKey); //console.log(VcodeKey);
for(let i =0;i<10;i++){ for (let i = 0; i < 10; i++) {
checkRes = await this.checkVcode(aesRes, VcodeToken, VcodeKey, aesStrStar) checkRes = await this.checkVcode(aesRes, VcodeToken, VcodeKey, aesStrStar)
if (checkRes == '0'){ if (checkRes == '0') {
return return
} }
} }
} else { } else {
console.log(`获取滑块失败了呢`); DoubleLog(`账号[${this.index}]获取失败了呢`);
} }
} catch (e) { } catch (e) {
console.log(e); console.log(e);
@@ -158,7 +162,7 @@ class UserInfo {
//console.log(result); //console.log(result);
if (result.resultCode == '0000') { if (result.resultCode == '0000') {
//console.log(result); //console.log(result);
console.log('验证成功'); DoubleLog(`账号[${this.index}]验证成功`);
let SignInParams = VcodeToken + '---' + aesStrStar let SignInParams = VcodeToken + '---' + aesStrStar
SignInParams = SignInParams.replace(/\ +/g, ""); SignInParams = SignInParams.replace(/\ +/g, "");
@@ -173,17 +177,17 @@ class UserInfo {
SignInpointJson += '==' SignInpointJson += '=='
//console.log(SignInpointJson); //console.log(SignInpointJson);
let res = await this.SignIn(SignInpointJson) let res = await this.SignIn(SignInpointJson)
if (res == '0') { if (res == '0') {
//console.log(`签到成功`); //console.log(`签到成功`);
return '0' return '0'
} }
} }
console.log(`签到结束`); DoubleLog(`账号[${this.index}]签到结束`);
//console.log(aesDecrypt(key, aesEncrypt(VcodeKey, SignInParams))); //console.log(aesDecrypt(key, aesEncrypt(VcodeKey, SignInParams)));
return '0' return '0'
} else { } else {
//console.log(result); //console.log(result);
console.log('验证失败'); DoubleLog(`账号[${this.index}]验证失败`);
return '1' return '1'
} }
} catch (e) { } catch (e) {
@@ -220,7 +224,7 @@ class UserInfo {
//console.log(result); //console.log(result);
if (result.resultCode == '0') { if (result.resultCode == '0') {
//console.log(result); //console.log(result);
console.log(`成功啦`); DoubleLog(`账号[${this.index}]签到成功啦`);
return '0' return '0'
} else { } else {
await $.wait(2000) await $.wait(2000)