Skip to content

Commit

Permalink
fix: correct key to match SQL queries & update hsr china self query h…
Browse files Browse the repository at this point in the history
…ost (#1099)
  • Loading branch information
Eric-Joker authored Sep 22, 2024
1 parent 1e695ef commit afec60e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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() == 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";
}
Expand Down
2 changes: 1 addition & 1 deletion src/Starward/Services/Gacha/GachaLogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public virtual async Task<long> GetUidFromGachaLogUrl(string url)
public virtual string? GetGachaLogUrlByUid(long uid)
{
using var dapper = _database.CreateConnection();
return dapper.QueryFirstOrDefault<string>("SELECT Url FROM GachaLogUrl WHERE Uid = @uid AND GameBiz = @GameBiz LIMIT 1;", new { uid, CurrentGameBiz });
return dapper.QueryFirstOrDefault<string>("SELECT Url FROM GachaLogUrl WHERE Uid = @uid AND GameBiz = @GameBiz LIMIT 1;", new { uid, GameBiz = CurrentGameBiz });
}


Expand Down

0 comments on commit afec60e

Please sign in to comment.