recycle fingerprint

This commit is contained in:
DismissedLight
2023-11-04 17:47:45 +08:00
parent e4e9dd91f1
commit f2ba316059
2 changed files with 4 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ internal sealed partial class UserFingerprintService : IUserFingerprintService
ExtFields = JsonSerializer.Serialize(extendProperties),
AppName = "bbs_cn",
BbsDeviceId = HoyolabOptions.DeviceId,
DeviceFp = GetRandomHexStringOfLength(13),
DeviceFp = string.IsNullOrEmpty(user.Fingerprint) ? GetRandomHexStringOfLength(13) : user.Fingerprint,
};
Response<DeviceFpWrapper> response = await deviceFpClient.GetFingerprintAsync(data, token).ConfigureAwait(false);

View File

@@ -133,9 +133,10 @@
<TextBlock
FontSize="10"
Style="{StaticResource CaptionTextBlockStyle}"
Text="{Binding Inner.Version}"/>
Text="{Binding Inner.Version}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap"/>
</Border>
</StackPanel>
<TextBlock