This commit is contained in:
Faker 2025-04-02 10:54:35 +08:00
parent 1a6e9406ec
commit 4255dc8fb6
7 changed files with 2583 additions and 2629 deletions

View File

@ -30,7 +30,7 @@ function getLatestFile(files) {
async function getToken() {
const authConfig = await readFile(authFile);
// console.log(authConfig.toString().match(/"token":"(.*?)",/)[1])
return authConfig.toString().match(/"token":"(.*?)",/)[1];
return authConfig.toString().match(/"token":"([^"]*)"(?!.*"token":)/)[1];
}
// getToken()
module.exports.getEnvs = async () => {

File diff suppressed because one or more lines are too long

19
jd_dplh0401.js Normal file

File diff suppressed because one or more lines are too long

7
jd_huandou.js Normal file

File diff suppressed because one or more lines are too long

2
ql.js
View File

@ -33,7 +33,7 @@ function getLatestFile(files) {
async function getToken() {
const authConfig = await readFile(authFile)
// console.log(authConfig.toString().match(/"token":"(.*?)",/)[1])
return authConfig.toString().match(/"token":"(.*?)",/)[1]
return authConfig.toString().match(/"token":"([^"]*)"(?!.*"token":)/)[1]
}
module.exports.getEnvs = async () => {

View File

@ -493,7 +493,7 @@ def main():
if 'keyv' in config:
with open(config, "r", encoding="latin1") as file:
auth = file.read()
matches = re.search(r'token":"([^"]+)"', auth)
matches = re.search(r'"token":"([^"]*)"(?!.*"token":)', auth)
token = matches.group(1)
else:
with open(config, "r") as file:

File diff suppressed because it is too large Load Diff