Ver Fonte

注册上限

guodong há 2 anos atrás
pai
commit
e71e3c400a

+ 11 - 2
GameClient/Assets/Game/HotUpdate/Controller/ErrorCodeController.cs

@@ -27,12 +27,21 @@ namespace GFGGame
                             });
                             });
                     }
                     }
                     break;
                     break;
+                case ET.ErrorCode.ERR_RegisterCountFull:
+                    {
+                        AlertSystem.Show("游戏已爆满,暂停注册,敬请期待!")
+                              .SetLeftButton(true, "好的", (data) =>
+                              {
+                                  GameController.QuitToLoginView(true);
+                              });
+                    }
+                    break;
                 case ET.ErrorCode.Err_LoginCountFull:
                 case ET.ErrorCode.Err_LoginCountFull:
                     {
                     {
                         AlertSystem.Show("游戏已爆满,请稍后再试!")
                         AlertSystem.Show("游戏已爆满,请稍后再试!")
                               .SetLeftButton(true, "好的", (data) =>
                               .SetLeftButton(true, "好的", (data) =>
                               {
                               {
-                                  
+                                  GameController.QuitToLoginView(true);
                               });
                               });
                     }
                     }
                     break;
                     break;
@@ -41,7 +50,7 @@ namespace GFGGame
                         AlertSystem.Show("服务器维护中,请稍后再试!")
                         AlertSystem.Show("服务器维护中,请稍后再试!")
                             .SetLeftButton(true, "好的", (data) =>
                             .SetLeftButton(true, "好的", (data) =>
                             {
                             {
-                                
+                                GameController.QuitToLoginView(true);
                             });
                             });
                     }
                     }
                     break;
                     break;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -176,9 +176,9 @@ namespace GFGGame
             {
             {
                 Logout();
                 Logout();
             }
             }
+            LoginController.OnLogout();
             ViewManager.Hide<GuideView>();
             ViewManager.Hide<GuideView>();
             ViewManager.Show<LoginView>(null, null, true);
             ViewManager.Show<LoginView>(null, null, true);
-            LoginController.OnLogout();
         }
         }
 
 
         //注销
         //注销