From c6aaaafe8ec02b63a46062f15b3010105cf7f711 Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Thu, 12 Sep 2024 18:32:22 +0800 Subject: [PATCH] refresh avatars before update --- .../Service/AvatarInfo/AvatarInfoRepositoryOperation.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/AvatarInfoRepositoryOperation.cs b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/AvatarInfoRepositoryOperation.cs index 09fca51377..1a2c1c1786 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/AvatarInfoRepositoryOperation.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/AvatarInfoRepositoryOperation.cs @@ -39,6 +39,9 @@ public async ValueTask> UpdateDbAvatarInfosAsync(UserAndU .GetRequiredService>() .CreateFor(userAndUid); + // manual refresh avatars + await gameRecordClient.GetPlayerInfoAsync(userAndUid, token).ConfigureAwait(false); + Response> listResponse = await gameRecordClient .GetCharacterListAsync(userAndUid, token) .ConfigureAwait(false);