|
|
@@ -1,265 +1,262 @@
|
|
|
-// using System;
|
|
|
-// using ET;
|
|
|
-// using UnityEngine;
|
|
|
-// using GFGGame.Launcher;
|
|
|
-//
|
|
|
-// namespace GFGGame
|
|
|
-// {
|
|
|
-// public class QDDouYouManager : SingletonBase<QDDouYouManager>
|
|
|
-// {
|
|
|
-// public bool isLogining;
|
|
|
-// public string uid;
|
|
|
-// public string token;
|
|
|
-//
|
|
|
-// public void Init()
|
|
|
-// {
|
|
|
-// Debug.Log("实例化DouYouSDKListener");
|
|
|
-// QDDouYouManagerInit.Instance.douYouSDKListener = new DouYouSDKListener();
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void Login()
|
|
|
-// {
|
|
|
-// // if (!string.IsNullOrEmpty(uid))
|
|
|
-// // {
|
|
|
-// // EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, uid);
|
|
|
-// // return;
|
|
|
-// // }
|
|
|
-// // if (isLogining) return;
|
|
|
-// // Debug.Log($"quick Login");
|
|
|
-// // isLogining = true;
|
|
|
-// QDDouYouManagerInit.Instance.ShowLogin();
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void OnCreateRole()
|
|
|
-// {
|
|
|
-// QDManager.PushRoleAction(DouYouRoleLogReportType.CreateRole);
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void 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);
|
|
|
-// QDManager.PushRoleAction(DouYouRoleLogReportType.EnterGame);
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void OnQuitToLoginView()
|
|
|
-// {
|
|
|
-// Debug.Log($"DouYou OnQuitToLoginView");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void Logout()
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate DouYou Logout");
|
|
|
-// QDDouYouManagerInit.Instance.ShowLogout();
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void LoginOutBefore()
|
|
|
-// {
|
|
|
-// QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame);
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void Pay(int buyID, int count, string orderID, long price)
|
|
|
-// {
|
|
|
-// ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(buyID);
|
|
|
-// if (shopCfg == null)
|
|
|
-// {
|
|
|
-// Log.Error($"recharge {buyID} config not found!");
|
|
|
-// return;
|
|
|
-// }
|
|
|
-//
|
|
|
-// ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(shopCfg.itemId);
|
|
|
-// if (itemCfg == null)
|
|
|
-// {
|
|
|
-// Log.Error($"recharge {buyID} itemCfgId:{shopCfg.itemId} config not found!");
|
|
|
-// return;
|
|
|
-// }
|
|
|
-//
|
|
|
-// 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;
|
|
|
-//
|
|
|
-// //自定义参数
|
|
|
-// string other = orderID + "|gfg|" + roleInfo.Id;
|
|
|
-// QDDouYouManagerInit.Instance.ShowSwitchPayment(orderID, price.ToString(), buyID.ToString(),
|
|
|
-// shopCfg.itemName, string.Empty,
|
|
|
-// roleInfo.ServerId.ToString(), serverName, roleInfo.Id.ToString(), roleInfo.Name, lvl.ToString(), other);
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void Exit()
|
|
|
-// {
|
|
|
-// QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame);
|
|
|
-// QDDouYouManagerInit.Instance.ExitApp();
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// /// <summary>
|
|
|
-// /// SDK回调
|
|
|
-// /// </summary>
|
|
|
-// public class DouYouSDKListener : IDouYouSDKListener
|
|
|
-// {
|
|
|
-// // /// <summary>
|
|
|
-// // /// 测试消息
|
|
|
-// // /// </summary>
|
|
|
-// // /// <param name="message"></param>
|
|
|
-// // public void ReceiveMessageAb(string message)
|
|
|
-// // {
|
|
|
-// // 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);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /// <summary>
|
|
|
-// /// 登录成功
|
|
|
-// /// </summary>
|
|
|
-// /// <param name="message">resUid + "|gfg|" + token</param>
|
|
|
-// public void LoginSuccessAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log("Game.HotUpdate LoginSuccessAb: " + message);
|
|
|
-// string[] result = message.Split(new string[] { "|gfg|" }, StringSplitOptions.None);
|
|
|
-//
|
|
|
-// QDDouYouManager.Instance.isLogining = false;
|
|
|
-// QDDouYouManager.Instance.uid = result[0];
|
|
|
-// QDDouYouManager.Instance.token = result[1];
|
|
|
-// //登录成功的回调
|
|
|
-// EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, result[0]);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /// <summary>
|
|
|
-// /// 切换账号或退出登录后
|
|
|
-// /// </summary>
|
|
|
-// /// <param name="message">退出登录成功!</param>
|
|
|
-// public void OutLoginSuccessAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log("Game.HotUpdate OutLoginSuccessAb: " + message);
|
|
|
-// GameController.QuitToLoginView(true);
|
|
|
-// EventAgent.DispatchEvent(ConstMessage.OUT_LOGIN);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /// <summary>
|
|
|
-// /// 支付失败
|
|
|
-// /// </summary>
|
|
|
-// /// <param name="message">code + "|gfg|" + params.toString()</param>
|
|
|
-// public void PayFailAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log("Game.HotUpdate PayFailAb: " + message);
|
|
|
-// //改变临时订单状态为失败
|
|
|
-// }
|
|
|
-//
|
|
|
-// /// <summary>
|
|
|
-// /// 支付成功
|
|
|
-// /// </summary>
|
|
|
-// /// <param name="message">code + "|gfg|" + params.toString()</param>
|
|
|
-// public void PaySuccessAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log("Game.HotUpdate PaySuccessAb" + message);
|
|
|
-// //改变临时订单状态为支付成功
|
|
|
-// QDManager.PushRoleAction(DouYouRoleLogReportType.Pay);
|
|
|
-// }
|
|
|
-//
|
|
|
-// #region SDK 生命周期函数
|
|
|
-//
|
|
|
-// public void SdkOnStartAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnStartAb:{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 SdkOnStopAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnStopAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnDestroyAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnDestroyAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnRestartAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnRestartAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnBackPressedAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnBackPressedAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnNewIntentAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnNewIntentAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnConfigurationChangedAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnConfigurationChangedAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnSaveInstanceStateAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnSaveInstanceStateAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnActivityResultAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnActivityResultAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnRequestPermissionResultAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnRequestPermissionResultAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void SdkOnWindowFocusChangedAb(string message)
|
|
|
-// {
|
|
|
-// Debug.Log($"Game.HotUpdate SdkOnWindowFocusChangedAb:{message}");
|
|
|
-// }
|
|
|
-//
|
|
|
-// #endregion
|
|
|
-// }
|
|
|
-// }
|
|
|
+using System;
|
|
|
+using cfg.GfgCfg;
|
|
|
+using ET;
|
|
|
+using UnityEngine;
|
|
|
+using GFGGame.Launcher;
|
|
|
+
|
|
|
+namespace GFGGame
|
|
|
+{
|
|
|
+ public class QDDouYouManager : SingletonBase<QDDouYouManager>
|
|
|
+ {
|
|
|
+ public bool isLogining;
|
|
|
+ public string uid;
|
|
|
+ public string token;
|
|
|
+
|
|
|
+ public void Init()
|
|
|
+ {
|
|
|
+ Debug.Log("实例化DouYouSDKListener");
|
|
|
+ QDJHGameManagerInit.Instance.douYouSDKListener = new DouYouSDKListener();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Login()
|
|
|
+ {
|
|
|
+ // if (!string.IsNullOrEmpty(uid))
|
|
|
+ // {
|
|
|
+ // EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, uid);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (isLogining) return;
|
|
|
+ // Debug.Log($"quick Login");
|
|
|
+ // isLogining = true;
|
|
|
+ QDJHGameManagerInit.Instance.ShowLogin();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnCreateRole()
|
|
|
+ {
|
|
|
+ QDManager.PushRoleAction(DouYouRoleLogReportType.CreateRole);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void 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;
|
|
|
+
|
|
|
+ QDJHGameManagerInit.Instance.ReportRoleLogin(roleInfo.Id.ToString(), lvl.ToString(), roleInfo.Name,
|
|
|
+ roleInfo.ServerId.ToString(), serverName);
|
|
|
+ QDManager.PushRoleAction(DouYouRoleLogReportType.EnterGame);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnQuitToLoginView()
|
|
|
+ {
|
|
|
+ Debug.Log($"DouYou OnQuitToLoginView");
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Logout()
|
|
|
+ {
|
|
|
+ Debug.Log($"Game.HotUpdate DouYou Logout");
|
|
|
+ QDJHGameManagerInit.Instance.ShowLogout();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void LoginOutBefore()
|
|
|
+ {
|
|
|
+ QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Pay(int buyID, int count, string orderID, long price)
|
|
|
+ {
|
|
|
+ ShopCfg shopCfg = CommonDataManager.Tables.TblShopCfg.GetOrDefault(buyID);
|
|
|
+ if (shopCfg == null)
|
|
|
+ {
|
|
|
+ Log.Error($"recharge {buyID} config not found!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(shopCfg.ItemId);
|
|
|
+
|
|
|
+ if (itemCfg == null)
|
|
|
+ {
|
|
|
+ Log.Error($"recharge {buyID} itemCfgId:{shopCfg.ItemId} config not found!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+ //自定义参数
|
|
|
+ string other = orderID + "|gfg|" + roleInfo.Id;
|
|
|
+ QDJHGameManagerInit.Instance.ShowSwitchPayment(orderID, price.ToString(), buyID.ToString(),
|
|
|
+ shopCfg.ItemName, string.Empty,
|
|
|
+ roleInfo.ServerId.ToString(), serverName, roleInfo.Id.ToString(), roleInfo.Name, lvl.ToString(), other);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Exit()
|
|
|
+ {
|
|
|
+ QDManager.PushRoleAction(DouYouRoleLogReportType.ExitGame);
|
|
|
+ QDDouYouManagerInit.Instance.ExitApp();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// SDK回调
|
|
|
+ /// </summary>
|
|
|
+ public class JHGameSDKListener : IJHGameSDKListener
|
|
|
+ {
|
|
|
+ //通知Unity准备支付
|
|
|
+ public void OnRechargeStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //支付完成后通知Unity
|
|
|
+ public void OnRechargeCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //支付错误
|
|
|
+ public void OnRechargeErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //创建角色实例化完成
|
|
|
+ public void OnCreateRoleStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //创建角色结果
|
|
|
+ public void OnCreateRoleCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //创建角色错误
|
|
|
+ public void OnCreateRoleErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //角色登录实例化完成
|
|
|
+ public void OnLoginRoleStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //角色登录结果
|
|
|
+ public void OnLoginRoleCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //角色登录错误
|
|
|
+ public void OnLoginRoleErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //角色升级回调实例化完成
|
|
|
+ public void OnUpgradeRoleStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnUpgradeRoleCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnUpgradeRoleErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ //顶号
|
|
|
+ public void OnRepeatLoginStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnRepeatLoginCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnRepeatLoginErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnCallIcpBeianStartAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnCallIcpBeianCompleteAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnCallIcpBeianErrorAb(string message)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 登录成功
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message">resUid + "|gfg|" + token</param>
|
|
|
+ public void LoginSuccessAb(string message)
|
|
|
+ {
|
|
|
+ Debug.Log("Game.HotUpdate LoginSuccessAb: " + message);
|
|
|
+ string[] result = message.Split(new string[] { "|gfg|" }, StringSplitOptions.None);
|
|
|
+
|
|
|
+ QDDouYouManager.Instance.isLogining = false;
|
|
|
+ QDDouYouManager.Instance.uid = result[0];
|
|
|
+ QDDouYouManager.Instance.token = result[1];
|
|
|
+ //登录成功的回调
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, result[0]);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 切换账号或退出登录后
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message">退出登录成功!</param>
|
|
|
+ public void OutLoginSuccessAb(string message)
|
|
|
+ {
|
|
|
+ Debug.Log("Game.HotUpdate OutLoginSuccessAb: " + message);
|
|
|
+ GameController.QuitToLoginView(true);
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.OUT_LOGIN);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 支付失败
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message">code + "|gfg|" + params.toString()</param>
|
|
|
+ public void PayFailAb(string message)
|
|
|
+ {
|
|
|
+ Debug.Log("Game.HotUpdate PayFailAb: " + message);
|
|
|
+ //改变临时订单状态为失败
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 支付成功
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="message">code + "|gfg|" + params.toString()</param>
|
|
|
+ public void PaySuccessAb(string message)
|
|
|
+ {
|
|
|
+ Debug.Log("Game.HotUpdate PaySuccessAb" + message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|