From 0c778c09f48cc1691479cdbf15fa24dc9679561e Mon Sep 17 00:00:00 2001 From: ToooAir <33440687+ToooAir@users.noreply.github.com> Date: Sat, 28 Oct 2023 09:57:14 +0800 Subject: [PATCH] fixed: unknown host (#54) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #53 我這邊yarn build之後運行正常 --------- Co-authored-by: biuuu <10892119+biuuu@users.noreply.github.com> --- src/main/getData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/getData.js b/src/main/getData.js index 4472226..960bf86 100644 --- a/src/main/getData.js +++ b/src/main/getData.js @@ -290,7 +290,7 @@ const fixAuthkey = (url) => { const getQuerystring = (url) => { const text = i18n.log const { searchParams, host } = new URL(fixAuthkey(url)) - if (host.includes('webstatic-sea') || host.includes('hkrpg-api-os') || host.includes("api-os-takumi")) { + if (host.includes('webstatic-sea') || host.includes('hkrpg-api-os') || host.includes('api-os-takumi') || host.includes('hoyoverse.com')) { apiDomain = 'https://api-os-takumi.mihoyo.com' } else { apiDomain = 'https://api-takumi.mihoyo.com'