Skip to content

Commit

Permalink
修改用户信息api为steam官方api
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbadmin committed Jan 12, 2021
1 parent bd7f9e7 commit 878e9db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/SteamTool.Proxy/HttpProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task OnRequest(object sender, SessionEventArgs e)
{
if (e.HttpClient.Request.RequestUri.AbsoluteUri.Contains(host))
{
if (e.HttpClient.Request.RequestUri.Scheme == "http")
if (e.HttpClient.Request.RequestUri.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase))
{
e.Redirect(e.HttpClient.Request.RequestUri.AbsoluteUri.Remove(0, 4).Insert(0, "https"));
}
Expand Down
2 changes: 1 addition & 1 deletion source/SteamTools/Services/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void ImportWinAuthenticators(string file)
var qm = line.IndexOf("?");
if (hash != -1 && hash < qm)
{
line = line.Substring(0, hash) + "%23" + line.Substring(hash + 1);
line = $"{line.Substring(0, hash)}%23{line.Substring(hash + 1)}";
}

// parse and validate URI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace SteamTools.ViewModels
public class SteamAccountPageViewModel : TabItemViewModel
{
private readonly SteamToolService steamService = SteamToolCore.Instance.Get<SteamToolService>();
private readonly SteamDbApiService webApiService = SteamService.Instance.Get<SteamDbApiService>();
private readonly SteamworksWebApiService webApiService = SteamService.Instance.Get<SteamworksWebApiService>();

public override string Name
{
Expand Down

0 comments on commit 878e9db

Please sign in to comment.