mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix hoyoverse login crash
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
<Border cw:UIElementExtensions.ClipToBounds="True">
|
||||
<Border VerticalAlignment="Top" cw:VisualExtensions.NormalizedCenterPoint="0.5">
|
||||
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
|
||||
|
||||
<mxi:Interaction.Behaviors>
|
||||
<shcb:AutoHeightBehavior TargetHeight="390" TargetWidth="1080"/>
|
||||
</mxi:Interaction.Behaviors>
|
||||
|
||||
@@ -42,7 +42,7 @@ internal sealed partial class LoginHoyoverseUserPage : Microsoft.UI.Xaml.Control
|
||||
|
||||
if (resp is not null)
|
||||
{
|
||||
return $"{resp.Data.AccountInfo.AccountId}";
|
||||
return $"{resp.Data?.AccountInfo?.AccountId}";
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user