Compare commits

...

5 Commits

3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "zzz-signal-search-export", "name": "zzz-signal-search-export",
"version": "1.0.2", "version": "1.0.4",
"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

@ -144,7 +144,7 @@ const readLog = async () => {
} }
const gamePathMch = logText.match(/([A-Z]:\/.*?\/)(?=ZenlessZoneZero_Data)/i) const gamePathMch = logText.match(/([A-Z]:\/.*?\/)(?=ZenlessZoneZero_Data)/i)
if (gamePathMch) { if (gamePathMch) {
const[cacheText, cacheFile] = await getCacheText("F:/zzz_game/ZenlessZoneZero_Data") /* getCacheText(gamePathMch[0]+"/ZenlessZoneZero_Data") */ const[cacheText, cacheFile] = await getCacheText(gamePathMch[0]+"/ZenlessZoneZero_Data")
const urlMch = cacheText.match(/https.+?authkey=.+?end_id=/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$/, '')
@ -293,8 +293,8 @@ const fixAuthkey = (url) => {
const getQuerystring = (url) => { const getQuerystring = (url) => {
const text = i18n.log const text = i18n.log
const { searchParams, host } = new URL(fixAuthkey(url)) const { searchParams, host } = new URL(fixAuthkey(url))
if (host.includes('webstatic-sea') || host.includes('hkrpg-api-os') || host.includes('api-os-takumi') || host.includes('hoyoverse.com')) { if (host.includes('webstatic-sea') || host.includes('hoyoverse.com')) {
apiDomain = 'https://api-os-takumi.mihoyo.com' apiDomain = 'https://public-operation-nap-sg.hoyoverse.com'
} else { } else {
apiDomain = 'https://public-operation-nap.mihoyo.com' apiDomain = 'https://public-operation-nap.mihoyo.com'
} }

View File

@ -54,7 +54,7 @@ const gachaDetail = (data) => {
detail.ssrPos.push([name, index + 1 - lastSSR, time, key]) detail.ssrPos.push([name, index + 1 - lastSSR, time, key])
lastSSR = index + 1 lastSSR = index + 1
detail.count4++ detail.count4++
detail.countMio++ detail.countMio = 0
if (isWeapon(type)) { if (isWeapon(type)) {
detail.count4w++ detail.count4w++
itemCount(detail.weapon4, name) itemCount(detail.weapon4, name)