Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct key to match SQL queries & update hsr china self query host #1099

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading