From 55babc3105125c4d19175ad9a6e46d5ebfa18850 Mon Sep 17 00:00:00 2001 From: Scighost Date: Wed, 25 Sep 2024 23:03:57 +0800 Subject: [PATCH] adapt to new star rail csc url #1079 --- src/Starward.Core/SelfQuery/SelfQueryClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Starward.Core/SelfQuery/SelfQueryClient.cs b/src/Starward.Core/SelfQuery/SelfQueryClient.cs index aace139d9..7f3de97ec 100644 --- a/src/Starward.Core/SelfQuery/SelfQueryClient.cs +++ b/src/Starward.Core/SelfQuery/SelfQueryClient.cs @@ -89,11 +89,11 @@ public async Task InitializeAsync(string url, GameBiz gameBiz } if (gameBiz.ToGame() is GameBiz.StarRail) { - if (url.StartsWith("https://webstatic.mihoyo.com/csc-service-center-fe/index.html")) + if (url.StartsWith("https://webstatic.mihoyo.com/csc-service-center-fe/index.html") || url.StartsWith("https://webstatic.mihoyo.com/static/mihoyo-new-csc-service-hall-fe/index.html")) { prefixUrl = "https://api-takumi.mihoyo.com"; } - if (url.StartsWith("https://cs.hoyoverse.com/csc-service-center-fe/index.html")) + if (url.StartsWith("https://cs.hoyoverse.com/csc-service-center-fe/index.html") || url.StartsWith("https://cs.hoyoverse.com/static/hoyoverse-new-csc-service-hall-fe/index.html")) { prefixUrl = "https://public-operation-hkrpg-sg.hoyoverse.com"; }