Skip to content

Commit

Permalink
adapt to new star rail csc url #1079
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Sep 25, 2024
1 parent 45e46d8 commit 55babc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Starward.Core/SelfQuery/SelfQueryClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public async Task<SelfQueryUserInfo> 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";
}
Expand Down

0 comments on commit 55babc3

Please sign in to comment.