mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-12-22 18:20:20 +08:00
fix: sometimes appid error
This commit is contained in:
parent
e307d21bb2
commit
23d102fe67
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "star-rail-warp-export",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"main": "./dist/electron/main/main.js",
|
||||
"author": "biuuu <https://github.com/biuuu>",
|
||||
"homepage": "https://github.com/biuuu/star-rail-warp-export",
|
||||
|
@ -141,7 +141,7 @@ const readLog = async () => {
|
||||
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//i)
|
||||
if (gamePathMch) {
|
||||
const [cacheText, cacheFile] = await getCacheText(gamePathMch[0])
|
||||
const urlMch = cacheText.match(/https.+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+?&plat_type=pc/g)
|
||||
const urlMch = cacheText.match(/https[^?]+?\?[^?]+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+?&plat_type=pc/g)
|
||||
if (urlMch) {
|
||||
cacheFolder = cacheFile.replace(/Cache_Data[/\\]data_2$/, '')
|
||||
return getLatestUrl(urlMch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user