zhaoyang 2 years ago
parent
commit
805ef85feb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -129,6 +129,7 @@ namespace GFGGame
 
         private void OnPlatformInitet(EventContext context)
         {
+            ViewManager.Hide<ModalStatusView>();
             var success = (bool)context.data;
             Debug.Log($"InitPlatform success {success}");
             if (success)
@@ -148,7 +149,6 @@ namespace GFGGame
             }
             else
             {
-                ViewManager.Hide<ModalStatusView>();
                 AlertSystem.Show("初始化平台sdk失败!")
                 .SetRightButton(true, "重试", (t) => { QDManager.InitPlatform(); });
             }
@@ -157,7 +157,6 @@ namespace GFGGame
 
         private void OnPlatformLogined(EventContext context)
         {
-            ViewManager.Hide<ModalStatusView>();
             var account = (string)context.data;
             if (!string.IsNullOrEmpty(account))
             {
@@ -175,6 +174,7 @@ namespace GFGGame
             }
             else
             {
+                ViewManager.Hide<ModalStatusView>();
                 //尝试自动登录
                 OnClickBtnStart();
             }