mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 07:50:19 +08:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee94ae36cd
|
|||
e575e46238
|
|||
3fac233471
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "zzz-signal-search-export",
|
"name": "zzz-signal-search-export",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"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",
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user