Compare commits

..

5 Commits

Author SHA1 Message Date
d99af2cc26 chore: bump version to v1.0.2 2024-07-20 19:25:15 +08:00
681e664e32 feat: check url from cache
1. NEVER MODIFY THE `yarn.lock` YOU GET. YOU NEVER KNOW WHAT IT CRASHES
2. FUCK REGEX
2024-07-20 19:24:01 +08:00
5f9fc94709 chore: bump version to v1.0.1 2024-07-19 01:42:02 +08:00
d96bd9f355 fix: read url from log
Directly get url from `Player.log`

Closes #2
2024-07-19 01:37:21 +08:00
3ff2879041 add lanzou link 2024-07-17 17:16:31 +08:00
4 changed files with 1815 additions and 1668 deletions

View File

@ -14,7 +14,7 @@
## 使用说明 ## 使用说明
1. 下载工具后解压 - 下载地址: [GitHub](https://github.com/earthjasonlin/zzz-signal-search-export/releases/latest/download/ZzzSignalSearchExport.zip) / [123云盘](https://www.123pan.com/s/Vs9uVv-ShhE.html) 1. 下载工具后解压 - 下载地址: [GitHub](https://github.com/earthjasonlin/zzz-signal-search-export/releases/latest/download/ZzzSignalSearchExport.zip) / [123云盘](https://www.123pan.com/s/Vs9uVv-ShhE.html) / [蓝奏云(密码:zzzz](https://www.lanzouh.com/b00eewtvxa)
2. 打开游戏的跃迁详情页面 2. 打开游戏的跃迁详情页面
![详情页面](/docs/wish-history.jpg) ![详情页面](/docs/wish-history.jpg)

View File

@ -1,6 +1,6 @@
{ {
"name": "zzz-signal-search-export", "name": "zzz-signal-search-export",
"version": "1.0.0", "version": "1.0.2",
"main": "./dist/electron/main/main.js", "main": "./dist/electron/main/main.js",
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>", "author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export", "homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",

View File

@ -138,15 +138,20 @@ const readLog = async () => {
} }
const promises = logPaths.map(async logpath => { const promises = logPaths.map(async logpath => {
const logText = await fs.readFile(logpath, 'utf8') const logText = await fs.readFile(logpath, 'utf8')
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//i) const url = logText.match(/https:\/\/.*?\/info/g)
if (url) {
return getLatestUrl(url)
}
const gamePathMch = logText.match(/([A-Z]:\/.*?\/)(?=ZenlessZoneZero_Data)/i)
if (gamePathMch) { if (gamePathMch) {
const [cacheText, cacheFile] = await getCacheText(gamePathMch[0]) const[cacheText, cacheFile] = await getCacheText("F:/zzz_game/ZenlessZoneZero_Data") /* getCacheText(gamePathMch[0]+"/ZenlessZoneZero_Data") */
const urlMch = cacheText.match(/https[^?]+?\?[^?]+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+?&plat_type=pc/g) const urlMch = cacheText.match(/https.+?authkey=.+?end_id=/g)
if (urlMch) { if (urlMch) {
cacheFolder = cacheFile.replace(/Cache_Data[/\\]data_2$/, '') cacheFolder = cacheFile.replace(/Cache_Data[/\\]data_2$/, '')
return getLatestUrl(urlMch) return getLatestUrl(urlMch)
} }
} }
}) })
const result = await Promise.all(promises) const result = await Promise.all(promises)
for (let url of result) { for (let url of result) {

3468
yarn.lock

File diff suppressed because it is too large Load Diff