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 cw:UIElementExtensions.ClipToBounds="True">
|
||||||
<Border VerticalAlignment="Top" cw:VisualExtensions.NormalizedCenterPoint="0.5">
|
<Border VerticalAlignment="Top" cw:VisualExtensions.NormalizedCenterPoint="0.5">
|
||||||
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
|
<shci:CachedImage Source="{Binding Banner}" Stretch="UniformToFill"/>
|
||||||
|
|
||||||
<mxi:Interaction.Behaviors>
|
<mxi:Interaction.Behaviors>
|
||||||
<shcb:AutoHeightBehavior TargetHeight="390" TargetWidth="1080"/>
|
<shcb:AutoHeightBehavior TargetHeight="390" TargetWidth="1080"/>
|
||||||
</mxi:Interaction.Behaviors>
|
</mxi:Interaction.Behaviors>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ internal sealed partial class LoginHoyoverseUserPage : Microsoft.UI.Xaml.Control
|
|||||||
|
|
||||||
if (resp is not null)
|
if (resp is not null)
|
||||||
{
|
{
|
||||||
return $"{resp.Data.AccountInfo.AccountId}";
|
return $"{resp.Data?.AccountInfo?.AccountId}";
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user