| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 | 
							- namespace GFGGame
 
- {
 
-     public class QDManager
 
-     {
 
-         public static bool isInited = false;
 
-         public static void Init()
 
-         {
 
-             switch(LauncherConfig.ChannelId)
 
-             {
 
-                 case (int)ChannelID.AppStore:
 
-                     QDAppStoreManager.Init();
 
-                     break;
 
-                 default:
 
-                     
 
-                     break;
 
-             }
 
-         }
 
-         public static void InitPlatform()
 
-         {
 
-             ViewManager.Show<ModalStatusView>("正在初始化...");
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 default:
 
-                     EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_INITED, true);
 
-                     break;
 
-             }
 
-         }
 
-         public static void Login()
 
-         {
 
-             ViewManager.Show<ModalStatusView>("登录中...");
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 default:
 
-                     bool login = GameController.CheckLoginCache(true);
 
-                     if (!login)
 
-                     {
 
-                         ViewManager.Hide<ModalStatusView>();
 
-                         ViewManager.Show<LoginInputView>();
 
-                     }
 
-                     break;
 
-             }
 
-         }
 
-         public static void OnCreateRole()
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 case (int)ChannelID.AppStore:
 
-                     QDAppStoreManager.OnCreateRole();
 
-                     break;
 
-                 default:
 
-                     break;
 
-             }
 
-         }
 
-         public static void OnEnterGame()
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 case (int)ChannelID.AppStore:
 
-                     QDAppStoreManager.OnEnterGame();
 
-                     break;
 
-                 default:
 
-                     break;
 
-             }
 
-         }
 
-         //回到登录界面,不退出账号
 
-         public static void OnQuitToLoginView()
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 default:
 
-                     
 
-                     break;
 
-             }
 
-         }
 
-         public static void Pay(int buyID, int count, string orderID, long Price)
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 case (int)ChannelID.AppStore:
 
-                     QDAppStoreManager.Pay(buyID, count, orderID, Price);
 
-                     break;
 
-                 default:
 
-                     break;
 
-             }
 
-         }
 
-         public static void Logout()
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 default:
 
-                     break;
 
-             }
 
-         }
 
-         public static void Exit()
 
-         {
 
-             switch (LauncherConfig.ChannelId)
 
-             {
 
-                 case (int)ChannelID.Test:
 
-                     GameController.ShowExitAlert();
 
-                     break;
 
-                 default:
 
-                     break;
 
-             }
 
-         }
 
-         public static bool IsTaptap
 
-         {
 
-             get
 
-             {
 
-                 return LauncherConfig.ChannelId == (int)ChannelID.TapTap;
 
-             }
 
-         }
 
-         public static bool IsHYKB
 
-         {
 
-             get
 
-             {
 
-                 return LauncherConfig.ChannelId == (int)ChannelID.HYKB;
 
-             }
 
-         }
 
-         public static bool IsBiliBili
 
-         {
 
-             get
 
-             {
 
-                 return LauncherConfig.ChannelId == (int)ChannelID.BiliBili;
 
-             }
 
-         }
 
-         public static bool IsHuaWei
 
-         {
 
-             get
 
-             {
 
-                 return LauncherConfig.ChannelId == (int)ChannelID.HUAWEI;
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |