浏览代码

Merge branch 'master' of http://10.108.64.190:3000/gfg/client

zhangyuqian 1 年之前
父节点
当前提交
a2a4c1c17a
共有 42 个文件被更改,包括 41 次插入13 次删除
  1. 17 5
      GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs
  2. 1 1
      GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/DisConnected/DisConnectedCompnentSystem.cs
  3. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_ComBox1.cs
  4. 12 0
      GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertSystem.cs
  5. 2 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  6. 6 6
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  7. 二进制
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png
  8. 二进制
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png
  9. 二进制
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes
  10. 二进制
      GameClient/Assets/ResIn/UI/League/League_fui.bytes
  11. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png
  12. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png
  13. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_1!a.png
  14. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_1.png
  15. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_2!a.png
  16. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_2.png
  17. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_4!a.png
  18. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_4.png
  19. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_7!a.png
  20. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_7.png
  21. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_8!a.png
  22. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_8.png
  23. 二进制
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes
  24. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png
  25. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0.png
  26. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png
  27. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png
  28. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_11!a.png
  29. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_11.png
  30. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_2.png
  31. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png
  32. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png
  33. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png
  34. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_6!a.png
  35. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_6.png
  36. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_7!a.png
  37. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_7.png
  38. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png
  39. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png
  40. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_9!a.png
  41. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_9.png
  42. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_fui.bytes

+ 17 - 5
GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

@@ -273,14 +273,26 @@ namespace GFGGame
             int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene);
             int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene);
             if (errorCode != ErrorCode.ERR_Success)
             if (errorCode != ErrorCode.ERR_Success)
             {
             {
-                if (errorCode != ErrorCode.ERR_SessionStateError && errorCode != ErrorCode.ERR_NetWorkError)
+                string errMessage = "与服务器连接失败。";
+                Log.Error($"Reconnect fail, errorCode {errorCode}!");
+                if(errorCode == ErrorCode.ERR_TokenError)
                 {
                 {
-                    Log.Error($"Reconnect fail, errorCode {errorCode}!");
+                    errMessage = "登录已过期,请重新登录";
+                    AlertSystem.Show(errMessage)
+                            .SetRightButton(true, "好的", (object data) =>
+                            {
+                                GameController.QuitToLoginView(false);
+                            });
+                    return;
                 }
                 }
-                AlertSystem.Show("重新连接失败,游戏或已更新,请重新进入游戏获得最佳体验。")
-                        .SetRightButton(true, "好的", (object data) =>
+                else if(errorCode == ErrorCode.ERR_NetWorkError)
+                {
+                    errMessage = "网络异常,与服务器连接失败。";
+                }
+                AlertSystem.Show(errMessage)
+                        .SetRightButton(true, "重新连接", (object data) =>
                         {
                         {
-                            Application.Quit();
+                            ReqReConnectGate().Coroutine();
                         });
                         });
                 return;
                 return;
             }
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/DisConnected/DisConnectedCompnentSystem.cs

@@ -19,7 +19,7 @@ namespace ET
 
 
                     if (!Application.isFocused)
                     if (!Application.isFocused)
                     {
                     {
-                        AlertSystem.Show("连接已断开。")
+                        AlertSystem.Show("与服务器连接已断开。")
                         .SetRightButton(true, "重新连接", (object data) =>
                         .SetRightButton(true, "重新连接", (object data) =>
                         {
                         {
                             LoginController.ReqReConnectGate().Coroutine();
                             LoginController.ReqReConnectGate().Coroutine();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_ComBox1.cs

@@ -23,6 +23,7 @@ namespace UI.LuckyBox
         public GTextField m_txtCount;
         public GTextField m_txtCount;
         public GTextField m_txtHasTime;
         public GTextField m_txtHasTime;
         public GGroup m_grpActivityTips;
         public GGroup m_grpActivityTips;
+        public GLoader m_ImgUp;
         public const string URL = "ui://drx9d1usduuftcr";
         public const string URL = "ui://drx9d1usduuftcr";
         public const string PACKAGE_NAME = "LuckyBox";
         public const string PACKAGE_NAME = "LuckyBox";
         public const string RES_NAME = "ComBox1";
         public const string RES_NAME = "ComBox1";
@@ -86,6 +87,7 @@ namespace UI.LuckyBox
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_txtHasTime = (GTextField)comp.GetChild("txtHasTime");
             m_txtHasTime = (GTextField)comp.GetChild("txtHasTime");
             m_grpActivityTips = (GGroup)comp.GetChild("grpActivityTips");
             m_grpActivityTips = (GGroup)comp.GetChild("grpActivityTips");
+            m_ImgUp = (GLoader)comp.GetChild("ImgUp");
         }
         }
         public void Dispose(bool disposeTarget = false)
         public void Dispose(bool disposeTarget = false)
         {
         {
@@ -108,6 +110,7 @@ namespace UI.LuckyBox
             m_txtCount = null;
             m_txtCount = null;
             m_txtHasTime = null;
             m_txtHasTime = null;
             m_grpActivityTips = null;
             m_grpActivityTips = null;
+            m_ImgUp = null;
             if(disposeTarget && target != null)
             if(disposeTarget && target != null)
             {
             {
                 target.RemoveFromParent();
                 target.RemoveFromParent();

+ 12 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertSystem.cs

@@ -44,6 +44,18 @@ namespace GFGGame
         {
         {
             _alertWindow = null;
             _alertWindow = null;
         }
         }
+
+        public static bool IsShow
+        {
+            get
+            {
+                if (_alertWindow == null)
+                {
+                    return false;
+                }
+                return _alertWindow.isShowing;
+            }
+        }
     }
     }
 
 
 }
 }

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -122,7 +122,7 @@ namespace GFGGame
                 LuckyBoxDataManager.Instance.luckyBoxIds.Insert(0, _activeBoxId);
                 LuckyBoxDataManager.Instance.luckyBoxIds.Insert(0, _activeBoxId);
             }
             }
 
 
-            int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[1];  //默认跳转进来是第二个活动
+            int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];  //默认跳转进来是第一个活动
             if (this.viewData != null)
             if (this.viewData != null)
             {
             {
                 int index = (int)this.viewData;  //传入的值为第几个活动,不是活动id
                 int index = (int)this.viewData;  //传入的值为第几个活动,不是活动id
@@ -174,6 +174,7 @@ namespace GFGGame
             else
             else
                 _listActivityBtnObj[boxId] = obj;
                 _listActivityBtnObj[boxId] = obj;
 
 
+            comBox.m_ImgUp.visible = index == 0;
             int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
             int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
             if (activityId > 0 && boxId == LuckyBoxDataManager.BOX_ID_2)
             if (activityId > 0 && boxId == LuckyBoxDataManager.BOX_ID_2)
             {
             {

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

@@ -963,14 +963,14 @@ namespace GFGGame
 
 
         private void CheckProbabilityUp()
         private void CheckProbabilityUp()
         {
         {
-            long curTime = TimeHelper.ServerNow();
-            long endTime = TimeUtil.DateTimeToTimestamp("[2024][2][2][00:00]");
+            //long curTime = TimeHelper.ServerNow();
+            //long endTime = TimeUtil.DateTimeToTimestamp("[2024][2][2][00:00]");
             //int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
             //int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
             //if (activityId > 0)
             //if (activityId > 0)
-            if (endTime >= curTime)
-                _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 1;
-            else
-                _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 0;
+            //if (endTime >= curTime)
+            //    _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 1;
+            //else
+            //    _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 0;
         }
         }
 
 
         private void CheckGuide(object param)
         private void CheckGuide(object param)

二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


二进制
GameClient/Assets/ResIn/UI/League/League_fui.bytes


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_1!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_2!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_2.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_4!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_4.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_7!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_7.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_8!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0_8.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_11!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_11.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_2.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_6!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_6.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_7!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_7.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_9!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_9.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes