mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
Merge branch 'main' of https://github.com/DGP-Studio/Snap.Hutao
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@ desktop.ini
|
||||
*.pubxml
|
||||
|
||||
.vs/
|
||||
.idea/
|
||||
src/Snap.Hutao/_ReSharper.Caches
|
||||
|
||||
src/Snap.Hutao/Snap.Hutao/bin/
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user