mirror of
https://github.com/XiaoGe-LiBai/yangmao.git
synced 2025-12-17 07:18:49 +08:00
更新 GaoDe-改.js
This commit is contained in:
@@ -54,7 +54,13 @@ var node = '', channel = '', adiu = '', userId = '', actID = '', playID = '', se
|
|||||||
for (let account of accounts) {
|
for (let account of accounts) {
|
||||||
try {
|
try {
|
||||||
console.log("Parsing account:", account); // 打印调试信息
|
console.log("Parsing account:", account); // 打印调试信息
|
||||||
let obj = JSON.parse(account);
|
// 对每个 account 进行预处理,去除多余的空格和字符
|
||||||
|
account = account.trim();
|
||||||
|
// 确保 account 是一个有效的 JSON 字符串
|
||||||
|
if (account[account.length - 1] !== '}') {
|
||||||
|
account += '"}';
|
||||||
|
}
|
||||||
|
let obj = JSON.parse(account); // 确保每个 account 都被正确解析
|
||||||
userId = obj.userId;
|
userId = obj.userId;
|
||||||
sessionid = obj.sessionid;
|
sessionid = obj.sessionid;
|
||||||
adiu = obj.adiu;
|
adiu = obj.adiu;
|
||||||
@@ -138,6 +144,7 @@ function getToken() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getKey() {
|
function getKey() {
|
||||||
for (var t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678', n = t.length, r = "", i = 0; i < 16; i++)
|
for (var t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678', n = t.length, r = "", i = 0; i < 16; i++)
|
||||||
r += t.charAt(Math.floor(Math.random() * n));
|
r += t.charAt(Math.floor(Math.random() * n));
|
||||||
|
|||||||
Reference in New Issue
Block a user