1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2025-07-17 09:54:19 +08:00
This commit is contained in:
2024
2025-03-31 21:25:57 +08:00
parent 89ef790a16
commit 23b21979e1
6 changed files with 14 additions and 19 deletions

View File

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