fix unregister passport

This commit is contained in:
Lightczx
2023-11-02 10:07:20 +08:00
parent 24f6a33256
commit 3ac0be4220
3 changed files with 3 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ internal sealed partial class HutaoPassportViewModel : Abstraction.ViewModel
return;
}
Response response = await homaPassportClient.UnregisterAsync(username, password).ConfigureAwait(false);
HutaoResponse response = await homaPassportClient.UnregisterAsync(username, password).ConfigureAwait(false);
if (response.IsOk())
{

View File

@@ -106,6 +106,8 @@ internal sealed partial class HomaPassportClient
.SetRequestUri(HutaoEndpoints.PassportCancel)
.PostJson(data);
await builder.TrySetTokenAsync(hutaoUserOptions).ConfigureAwait(false);
HutaoResponse? resp = await builder
.TryCatchSendAsync<HutaoResponse>(httpClient, logger, token)
.ConfigureAwait(false);

View File

@@ -1,7 +1,6 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using Snap.Hutao.Service.Notification;
using System.Runtime.CompilerServices;
namespace Snap.Hutao.Web.Hutao;