diff --git a/src/Starward.Core/SelfQuery/SelfQueryClient.cs b/src/Starward.Core/SelfQuery/SelfQueryClient.cs index 183f7ed01..5d1e4d99e 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() == GameBiz.hkrpg) { - 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"; } diff --git a/src/Starward/Services/Gacha/GachaLogService.cs b/src/Starward/Services/Gacha/GachaLogService.cs index 3abad8e77..1f642604f 100644 --- a/src/Starward/Services/Gacha/GachaLogService.cs +++ b/src/Starward/Services/Gacha/GachaLogService.cs @@ -115,7 +115,7 @@ public virtual async Task GetUidFromGachaLogUrl(string url) public virtual string? GetGachaLogUrlByUid(long uid) { using var dapper = _database.CreateConnection(); - return dapper.QueryFirstOrDefault("SELECT Url FROM GachaLogUrl WHERE Uid = @uid AND GameBiz = @GameBiz LIMIT 1;", new { uid, CurrentGameBiz }); + return dapper.QueryFirstOrDefault("SELECT Url FROM GachaLogUrl WHERE Uid = @uid AND GameBiz = @GameBiz LIMIT 1;", new { uid, GameBiz = CurrentGameBiz }); }