|
@@ -25,10 +25,15 @@ namespace GFGGame
|
|
|
QDShareManager.Instance.Init();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
-#if !UNITY_EDITOR && UNITY_IOS
|
|
|
- //QDAppStoreManager.Init();
|
|
|
-#endif
|
|
|
- QDDouYouManagerIos.Instance.Init();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.Init();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ QDAppStoreManager.Init();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -56,7 +61,20 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.Login();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.Login();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.Login();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ bool loginAppStore = GameController.CheckLoginCache(true);
|
|
|
+ if (!loginAppStore)
|
|
|
+ {
|
|
|
+ ViewManager.Hide<ModalStatusView>();
|
|
|
+ ViewManager.Show<LoginInputView>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -77,7 +95,15 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.OnCreateRole();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.OnCreateRole();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.OnCreateRole();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ QDAppStoreManager.OnCreateRole();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -98,7 +124,15 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.OnEnterGame();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.OnEnterGame();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.OnEnterGame();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ QDAppStoreManager.OnEnterGame();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -120,7 +154,11 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.OnQuitToLoginView();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.OnQuitToLoginView();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.OnQuitToLoginView();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -141,7 +179,15 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.Pay(buyID, count, orderID, price);
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.Pay(buyID, count, orderID, price);
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.Pay(buyID, count, orderID, price);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ QDAppStoreManager.Pay(buyID, count, orderID, price);
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -170,7 +216,15 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.Logout();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.Logout();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.Logout();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ViewManager.Show<LoginInputView>();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -191,7 +245,11 @@ namespace GFGGame
|
|
|
QDDouYouManager.Instance.Exit();
|
|
|
break;
|
|
|
case (int)ChannelID.AppStore:
|
|
|
- QDDouYouManagerIos.Instance.Exit();
|
|
|
+ if (LauncherConfig.isUseDouYouIos == "1")
|
|
|
+ {
|
|
|
+ QDDouYouManagerIos.Instance.Exit();
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
default:
|
|
|
break;
|