This commit is contained in:
Lightczx
2023-07-10 09:31:53 +08:00
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@ desktop.ini
*.pubxml
.vs/
.idea/
src/Snap.Hutao/_ReSharper.Caches
src/Snap.Hutao/Snap.Hutao/bin/

View File

@@ -69,7 +69,7 @@ internal sealed class DescriptionTextBlock : ContentControl
for (int i = 0; i < description.Length;)
{
// newline
if (description.Slice(i, 2).SequenceEqual(@"\n"))
if (description.Slice(i, 2) is @"\n")
{
AppendText(text, description[last..i]);
AppendLineBreak(text);

View File

@@ -39,9 +39,9 @@ internal sealed partial class UserClient : IUserClient
public async Task<Response<UserFullInfoWrapper>> GetUserFullInfoAsync(Model.Entity.User user, CancellationToken token = default)
{
Response<UserFullInfoWrapper>? resp = await httpClient
.SetUser(user, CookieType.SToken)
//.SetUser(user, CookieType.SToken)
.SetReferer(ApiEndpoints.BbsReferer)
.UseDynamicSecret(DynamicSecretVersion.Gen1, SaltType.K2, true)
//.UseDynamicSecret(DynamicSecretVersion.Gen1, SaltType.K2, true)
.TryCatchGetFromJsonAsync<Response<UserFullInfoWrapper>>(ApiEndpoints.UserFullInfoQuery(user.Aid!), options, logger, token)
.ConfigureAwait(false);