hexiaojie 7 сар өмнө
parent
commit
b190bc0a92

+ 77 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_QieHuanUI.cs

@@ -0,0 +1,77 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Login
+{
+    public partial class UI_QieHuanUI
+    {
+        public GComponent target;
+        public GComponent m_bg;
+        public GButton m_btnSubmit;
+        public GButton m_btnDow;
+        public const string URL = "ui://myoktu7po9bl5w";
+        public const string PACKAGE_NAME = "Login";
+        public const string RES_NAME = "QieHuanUI";
+        private static UI_QieHuanUI _proxy;
+
+        public static UI_QieHuanUI Create(GObject gObject = null)
+        {
+            var ui = new UI_QieHuanUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_QieHuanUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_QieHuanUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_bg = (GComponent)comp.GetChild("bg");
+            m_btnSubmit = (GButton)comp.GetChild("btnSubmit");
+            m_btnDow = (GButton)comp.GetChild("btnDow");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_bg = null;
+            m_btnSubmit = null;
+            m_btnDow = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_QieHuanUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 648510d995698fb499ee51ddb9a038da
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Platform/AliPay/AliManager.cs

@@ -7,6 +7,11 @@ namespace GFGGame
 {
     public class AliManagerr : SingletonBase<AliManagerr>
     {
+        public void Init()
+        {
+            AliPayManagerInit.Instance.aliSDKListener = new AliPaySDKListener();
+        }
+        
         //支付宝支付
         public void Pay(string orderStr)
         {
@@ -35,6 +40,14 @@ namespace GFGGame
 
         public void VxPayReceiveAb(string message)
         {
+            if (message == "0")
+            {
+                ViewManager.Hide<StorePayPropView>(); 
+            }
+            else
+            {
+                PromptController.Instance.ShowFloatTextPrompt("支付失败");
+            }
             Debug.Log("Game.HotUpdate VxPayReceiveAb: " + message);
         }
     }

+ 102 - 7
GameClient/Assets/Game/HotUpdate/Platform/QDManager.cs

@@ -14,11 +14,27 @@ namespace GFGGame
             switch (LauncherConfig.ChannelId)
             {
                 case (int)ChannelID.Test:
-                    QDShareManager.Instance.Init();
+                    // AliManagerr.Instance.Init();
+                    // QDShareManager.Instance.Init();
                     break;
                 case (int)ChannelID.DouYou:
                     //QDDouYouManager.Instance.Init();
-                    QDShareManager.Instance.Init();
+                #if GFGZSB
+                AliManagerr.Instance.Init();
+                QDShareManager.Instance.Init();
+                #else                 
+                    if (LauncherConfig.platformId == 2)
+                    {
+                #if !UNITY_EDITOR && UNITY_IOS
+                QDDouYouManagerIos.Instance.Init();
+                #endif
+                    }
+                    else
+                    {
+                       QDDouYouManager.Instance.Init();
+                    }
+                #endif
+
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.Init();
@@ -49,12 +65,25 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
+                    #if GFGZSB
                     bool loginDouYou = GameController.CheckLoginCache(true);
                     if (!loginDouYou)
                     {
                         ViewManager.Hide<ModalStatusView>();
                         ViewManager.Show<LoginInputView>();
                     }
+                    #else
+                    if (LauncherConfig.platformId == 2)
+                    {
+                    #if !UNITY_EDITOR && UNITY_IOS
+                     QDDouYouManagerIos.Instance.Login();
+                    #endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.Login();
+                    }       
+                    #endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.Login();
@@ -75,7 +104,12 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
-                 
+#if !GFGZSB
+                    if (LauncherConfig.platformId == 1)
+                    {
+                        QDDouYouManager.Instance.OnCreateRole();
+                    }
+#endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.OnCreateRole();
@@ -93,7 +127,18 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
-               
+#if !GFGZSB
+                    if (LauncherConfig.platformId == 2)
+                    {
+#if !UNITY_EDITOR && UNITY_IOS
+                     QDDouYouManagerIos.Instance.OnEnterGame();
+#endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.OnEnterGame();
+                    }
+#endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.OnEnterGame();
@@ -115,7 +160,18 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
-                
+#if !GFGZSB
+                    if (LauncherConfig.platformId == 2)
+                    {
+#if !UNITY_EDITOR && UNITY_IOS
+          QDDouYouManagerIos.Instance.OnQuitToLoginView();      
+#endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.OnQuitToLoginView();
+                    }
+#endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.OnQuitToLoginView();
@@ -136,8 +192,22 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
-                    //TODO gfg支付跳转
+#if GFGZSB
+         //TODO gfg支付跳转
                     ViewManager.Show<StorePayPropView>(new object[] { buyID, orderID, price });
+#else
+                    if (LauncherConfig.platformId == 2)
+                    {
+#if !UNITY_EDITOR && UNITY_IOS
+                        QDDouYouManagerIos.Instance.Pay(buyID, count, orderID, price);
+#endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.Pay(buyID, count, orderID, price);
+                    }              
+#endif
+                    
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.Pay(buyID, count, orderID, price);
@@ -166,6 +236,18 @@ namespace GFGGame
 
                     break;
                 case (int)ChannelID.DouYou:
+                    #if !GFGZSB
+                    if (LauncherConfig.platformId == 2)
+                    {
+#if !UNITY_EDITOR && UNITY_IOS
+                        QDDouYouManagerIos.Instance.Logout();
+#endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.Logout();
+                    }
+                    #endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.Logout();
@@ -186,7 +268,20 @@ namespace GFGGame
                     GameController.ShowExitAlert();
                     break;
                 case (int)ChannelID.DouYou:
-                    GameController.ShowExitAlert();
+#if GFGZSB
+              GameController.ShowExitAlert();     
+#else
+                    if (LauncherConfig.platformId == 2)
+                    {
+#if !UNITY_EDITOR && UNITY_IOS
+                        QDDouYouManagerIos.Instance.Exit();
+#endif
+                    }
+                    else
+                    {
+                        QDDouYouManager.Instance.Exit();
+                    }
+#endif
                     break;
                 case (int)ChannelID.DouYouDev:
                     QDDouYouManager.Instance.Exit();

+ 5 - 2
GameClient/Assets/Game/HotUpdate/Views/Store/StorePayPropView.cs

@@ -46,7 +46,9 @@ namespace GFGGame
             viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
 
             _ui.m_payVxBtn.onClick.Add(OnVxBtnBuyClick);
-            _ui.m_payAliBtn.onClick.Add(OnAliBtnBuyClick);
+            _ui.m_payAliBtn.visible = false;
+            //_ui.m_payAliBtn.onClick.Add(OnAliBtnBuyClick);
+            _ui.m_payClose.visible = false;
             _ui.m_payClose.onClick.Add(OnCloseClick);
         }
 
@@ -72,7 +74,7 @@ namespace GFGGame
             }
 
             string APP_ID = "wxd9772f42f126413f";
-            string MCH_ID = "200768907612";
+            string MCH_ID = "1685294597";
             string prepayid = response.PrepayIdStr;
             string packageValue = "Sign=WXPay";
             string noncestr = response.NonceStr;
@@ -95,6 +97,7 @@ namespace GFGGame
 
         private async void OnCloseClick()
         {
+           Hide();
         }
     }
 }

BIN
GameClient/Assets/ResIn/UI/Login/Login_fui.bytes