mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
remove unnecessary DS handler in UserClient
This commit is contained in:
@@ -69,7 +69,7 @@ internal sealed class DescriptionTextBlock : ContentControl
|
|||||||
for (int i = 0; i < description.Length;)
|
for (int i = 0; i < description.Length;)
|
||||||
{
|
{
|
||||||
// newline
|
// newline
|
||||||
if (description.Slice(i, 2).SequenceEqual(@"\n"))
|
if (description.Slice(i, 2) is @"\n")
|
||||||
{
|
{
|
||||||
AppendText(text, description[last..i]);
|
AppendText(text, description[last..i]);
|
||||||
AppendLineBreak(text);
|
AppendLineBreak(text);
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ internal sealed partial class UserClient : IUserClient
|
|||||||
public async Task<Response<UserFullInfoWrapper>> GetUserFullInfoAsync(Model.Entity.User user, CancellationToken token = default)
|
public async Task<Response<UserFullInfoWrapper>> GetUserFullInfoAsync(Model.Entity.User user, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
Response<UserFullInfoWrapper>? resp = await httpClient
|
Response<UserFullInfoWrapper>? resp = await httpClient
|
||||||
.SetUser(user, CookieType.SToken)
|
//.SetUser(user, CookieType.SToken)
|
||||||
.SetReferer(ApiEndpoints.BbsReferer)
|
.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)
|
.TryCatchGetFromJsonAsync<Response<UserFullInfoWrapper>>(ApiEndpoints.UserFullInfoQuery(user.Aid!), options, logger, token)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user