| 
					
				 | 
			
			
				@@ -32,28 +32,31 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void OnCreateRole() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var zoneScene = GameGlobal.zoneScene; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            string serverName = zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo.ServerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            QDDouYouManagerInit.Instance.ReportRole((int)DouYouRoleLogReportType.CreateRole, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                roleInfo.Id.ToString(), 1.ToString(), roleInfo.Name, roleInfo.ServerId.ToString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                serverName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QDManager.PushRoleAction(DouYouRoleLogReportType.CreateRole); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void OnEnterGame() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Debug.Log($"DouYou OnEnterGame"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var zoneScene = GameGlobal.zoneScene; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<RoleInfosComponent>() == null || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                zoneScene.GetComponent<RoleInfosComponent>().IsDisposed) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (roleInfo == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (GameGlobal.myNumericComponent == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int lvl = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<ServerInfosComponent>() == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string serverName = zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo.ServerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             QDDouYouManagerInit.Instance.ReportRoleLogin(roleInfo.Id.ToString(), lvl.ToString(), roleInfo.Name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 roleInfo.ServerId.ToString(), serverName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            QDDouYouManagerInit.Instance.ReportRole((int)DouYouRoleLogReportType.EnterGame, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                roleInfo.Id.ToString(), lvl.ToString(), roleInfo.Name, roleInfo.ServerId.ToString(), serverName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QDManager.PushRoleAction(DouYouRoleLogReportType.EnterGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void OnQuitToLoginView() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -69,14 +72,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void LoginOutBefore() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var zoneScene = GameGlobal.zoneScene; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int lvl = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            string serverName = zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo.ServerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            QDDouYouManagerInit.Instance.ReportRole((int)DouYouRoleLogReportType.ExitGame, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                roleInfo.Id.ToString(), lvl.ToString(), roleInfo.Name, roleInfo.ServerId.ToString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                serverName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void Pay(int buyID, int count, string orderID, long price) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,8 +92,20 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var zoneScene = GameGlobal.zoneScene; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int lvl = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<RoleInfosComponent>() == null || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                zoneScene.GetComponent<RoleInfosComponent>().IsDisposed) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (roleInfo == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (GameGlobal.myNumericComponent == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int lvl = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<ServerInfosComponent>() == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string serverName = zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo.ServerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //自定义参数 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -109,18 +117,14 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void Exit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var zoneScene = GameGlobal.zoneScene; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int lvl = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            string serverName = zoneScene.GetComponent<ServerInfosComponent>().recentlyServerInfo.ServerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            QDDouYouManagerInit.Instance.ReportRole((int)DouYouRoleLogReportType.ExitGame, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                roleInfo.Id.ToString(), lvl.ToString(), roleInfo.Name, roleInfo.ServerId.ToString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                serverName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             QDDouYouManagerInit.Instance.ExitApp(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /// SDK回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class DouYouSDKListener : IDouYouSDKListener 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // /// <summary> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -132,15 +136,14 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //     Debug.Log($"Game.HotUpdate ReceiveMessageAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // /// SDK实例化成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // /// <param name="message">SDK 实例化成功</param> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // public void InitSuccessAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     Debug.Log("Game.HotUpdate InitSuccessAb: " + message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     //UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// SDK实例化成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <param name="message">SDK 实例化成功</param> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void InitSuccessAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log("Game.HotUpdate InitSuccessAb: " + message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// 登录成功  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -187,6 +190,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Debug.Log("Game.HotUpdate PaySuccessAb" + message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //改变临时订单状态为支付成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QDManager.PushRoleAction(DouYouRoleLogReportType.Pay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #region SDK 生命周期函数 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -196,15 +200,15 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Debug.Log($"Game.HotUpdate SdkOnStartAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // public void SdkOnPauseAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     Debug.Log($"Game.HotUpdate SdkOnPauseAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SdkOnPauseAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log($"Game.HotUpdate SdkOnPauseAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // public void SdkOnResumeAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     Debug.Log($"Game.HotUpdate SdkOnResumeAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SdkOnResumeAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log($"Game.HotUpdate SdkOnResumeAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public void SdkOnStopAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -246,15 +250,15 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Debug.Log($"Game.HotUpdate SdkOnActivityResultAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // public void SdkOnRequestPermissionResultAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     Debug.Log($"Game.HotUpdate SdkOnRequestPermissionResultAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SdkOnRequestPermissionResultAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log($"Game.HotUpdate SdkOnRequestPermissionResultAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // public void SdkOnWindowFocusChangedAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //     Debug.Log($"Game.HotUpdate SdkOnWindowFocusChangedAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        public void SdkOnWindowFocusChangedAb(string message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Debug.Log($"Game.HotUpdate SdkOnWindowFocusChangedAb:{message}"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |