| 
					
				 | 
			
			
				@@ -133,7 +133,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static void Logout() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GameGlobal.zoneScene.GetComponent<SessionComponent>().AccountSession?.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            GameGlobal.zoneScene.GetComponent<SessionComponent>().Session?.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            GameGlobal.zoneScene.GetComponent<SessionComponent>().GateSession?.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static async ETTask Register(string account, string password, string name, string identityNum, string code) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -154,9 +154,11 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static async ETTask GetServerInfos() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Show<ModalStatusView>("获取服务器列表..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int errorCode = await LoginHelper.GetServerInfos(GameGlobal.zoneScene); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (errorCode != ErrorCode.ERR_Success) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ViewManager.Hide<ModalStatusView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ErrorCodeController.Handler(errorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 await ETTask.Create(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -181,6 +183,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static async ETTask GetRoles() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Show<ModalStatusView>("获取角色信息..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int errorCode = await LoginHelper.GetRoles(GameGlobal.zoneScene); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (errorCode != ErrorCode.ERR_Success) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -221,18 +224,20 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static async ETTask ReqEnterGame() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ViewManager.Hide<LoginView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ViewManager.Show<LoadingView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // LoadingView.Instance.Open(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            LoadingView.Instance.SetProgress(99); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            LoadingView.Instance.SetDesc("正在进入游戏"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            LogServerHelperHttp.SendNodeLog((int)LogNode.StartEnterGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Show<ModalStatusView>("请求进入游戏..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int errorCode = await LoginHelper.GetRealmKey(GameGlobal.zoneScene); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (errorCode != ErrorCode.ERR_Success) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ViewManager.Hide<ModalStatusView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ErrorCodeController.Handler(errorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Hide<ModalStatusView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Hide<LoginView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Show<LoadingView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            LoadingView.Instance.SetProgress(99); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            LoadingView.Instance.SetDesc("正在进入游戏"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            LogServerHelperHttp.SendNodeLog((int)LogNode.StartEnterGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (errorCode != ErrorCode.ERR_Success) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -244,5 +249,20 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LogServerHelperHttp.SendNodeLog((int)LogNode.OnEnterGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public static async ETTask ReqReConnectGate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Show<ModalStatusView>("重新连接中..."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (errorCode != ErrorCode.ERR_Success) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ErrorCodeController.Handler(errorCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EventAgent.DispatchEvent(ConstMessage.NUMERIC_CHANGE, NumericType.All); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //重连成功请求邮件和公告等离线后会变更的数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            NoticeSProxy.ReqSystemNoticeList().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            MailSProxy.ReqMailCount().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ViewManager.Hide<ModalStatusView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |