fix(getData): update API host for OS servers

This commit is contained in:
Zichao Lin 2024-07-21 13:33:04 +08:00
parent 3fac233471
commit e575e46238
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

View File

@ -293,8 +293,8 @@ 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') || host.includes('hoyoverse.com')) {
apiDomain = 'https://api-os-takumi.mihoyo.com'
if (host.includes('webstatic-sea') || host.includes('hoyoverse.com')) {
apiDomain = 'https://public-operation-nap-sg.hoyoverse.com'
} else {
apiDomain = 'https://public-operation-nap.mihoyo.com'
}