Эх сурвалжийг харах

Merge branch 'master' of http://10.108.64.190:3000/gfg/client

zhaoyang 2 жил өмнө
parent
commit
9cb57b865d

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

@@ -196,8 +196,18 @@ namespace GFGGame
             ViewManager.Show<LoginView>(null, null, true);
             ViewManager.Show<LoginView>(null, null, true);
         }
         }
 
 
+        //断线重连后需要处理的事情
+        public static void OnReconnected()
+        {
+            //重连成功请求邮件和公告等离线后会变更的数据
+            NoticeSProxy.ReqSystemNoticeList().Coroutine();
+            MailSProxy.ReqMailCount().Coroutine();
+            FriendSProxy.ReqAllFriendInfos().Coroutine();
+            PoemGallerySProxy.ReqGalleryTheme().Coroutine();
+        }
+
         //注销
         //注销
-        public static void Logout()
+        private static void Logout()
         {
         {
             QDManager.Logout();
             QDManager.Logout();
             PlayerPrefs.DeleteKey(GameConst.PASSWORD_LAST_LOGIN_KEY);
             PlayerPrefs.DeleteKey(GameConst.PASSWORD_LAST_LOGIN_KEY);

+ 1 - 5
GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

@@ -274,11 +274,7 @@ namespace GFGGame
                 return;
                 return;
             }
             }
             EventAgent.DispatchEvent(ConstMessage.NUMERIC_CHANGE, NumericType.All);
             EventAgent.DispatchEvent(ConstMessage.NUMERIC_CHANGE, NumericType.All);
-            //重连成功请求邮件和公告等离线后会变更的数据
-            NoticeSProxy.ReqSystemNoticeList().Coroutine();
-            MailSProxy.ReqMailCount().Coroutine();
-            FriendSProxy.ReqAllFriendInfos().Coroutine();
-            PoemGallerySProxy.ReqGalleryTheme().Coroutine();
+            GameController.OnReconnected();
             ViewManager.Hide<ModalStatusView>();
             ViewManager.Hide<ModalStatusView>();
         }
         }
     }
     }