mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-20 23:50:17 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d99af2cc26
|
|||
681e664e32
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "zzz-signal-search-export",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"main": "./dist/electron/main/main.js",
|
||||
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
|
||||
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",
|
||||
|
@ -139,7 +139,19 @@ const readLog = async () => {
|
||||
const promises = logPaths.map(async logpath => {
|
||||
const logText = await fs.readFile(logpath, 'utf8')
|
||||
const url = logText.match(/https:\/\/.*?\/info/g)
|
||||
if (url) {
|
||||
return getLatestUrl(url)
|
||||
}
|
||||
const gamePathMch = logText.match(/([A-Z]:\/.*?\/)(?=ZenlessZoneZero_Data)/i)
|
||||
if (gamePathMch) {
|
||||
const[cacheText, cacheFile] = await getCacheText("F:/zzz_game/ZenlessZoneZero_Data") /* getCacheText(gamePathMch[0]+"/ZenlessZoneZero_Data") */
|
||||
const urlMch = cacheText.match(/https.+?authkey=.+?end_id=/g)
|
||||
if (urlMch) {
|
||||
cacheFolder = cacheFile.replace(/Cache_Data[/\\]data_2$/, '')
|
||||
return getLatestUrl(urlMch)
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
const result = await Promise.all(promises)
|
||||
for (let url of result) {
|
||||
|
Reference in New Issue
Block a user