remove unnecessary DS handler in UserClient

This commit is contained in:
DismissedLight
2023-07-10 09:30:32 +08:00
parent 1fc1f9b08d
commit 0fc0413612
2 changed files with 3 additions and 3 deletions

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);