hexiaojie 7 months ago
parent
commit
e97ded3a77

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -1626,13 +1626,21 @@ namespace GFGGame
             if (GameGlobal.AutoShowCompleted) return;
             if (GameGlobal.AutoShowCompleted) return;
             if (!GameGlobal.AfterDataInited) return;
             if (!GameGlobal.AfterDataInited) return;
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
+            #if !GFGZSB
             int isRegisterRoleInfo = GameGlobal.myNumericComponent.GetAsInt(NumericType.IsRegisterRoleInfo);
             int isRegisterRoleInfo = GameGlobal.myNumericComponent.GetAsInt(NumericType.IsRegisterRoleInfo);
             if (isRegisterRoleInfo == 0)
             if (isRegisterRoleInfo == 0)
             {
             {
                 ViewManager.Show<RoleInfoRegisterView>();
                 ViewManager.Show<RoleInfoRegisterView>();
                 return;
                 return;
             }
             }
-
+            
+            if (LauncherConfig.platformId == 1 && LauncherConfig.ChannelId == (int)ChannelID.DouYou)
+            {
+                ViewManager.Show<QieHuanView>();
+                return; 
+            }
+            #endif
+            
             if (RoleDataManager.lvl < 5) return;
             if (RoleDataManager.lvl < 5) return;
             //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
             //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
             if (GameGlobal.AutoNewPlayersTips)
             if (GameGlobal.AutoNewPlayersTips)

+ 55 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfoRegister/QieHuanView.cs

@@ -0,0 +1,55 @@
+using UI.Login;
+using UnityEngine;
+using FairyGUI;
+
+namespace GFGGame
+{
+    public class QieHuanView : BaseWindow
+    {
+        private UI_QieHuanUI _ui;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_QieHuanUI.PACKAGE_NAME;
+            _ui = UI_QieHuanUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+
+            _ui.m_btnSubmit.onClick.Add(OnClickBtnSubmit);
+            _ui.m_btnDow.onClick.Add(OnClickBtnDow);
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        private void OnClickBtnDow()
+        {
+            Application.OpenURL("http://cdn.goufuguiwxw.com/Apk/万世镜官包.apk");
+        }
+
+        private void OnClickBtnSubmit()
+        {
+            ViewManager.Show<RoleInfoRegisterView>();
+        }
+    }
+}

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfoRegister/QieHuanView.cs.meta

@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 0528f326a201448f87b0cef328cc93ad
+timeCreated: 1735124181