mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix unregister passport
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user