hexiaojie пре 8 месеци
родитељ
комит
c7ecb6f5c8

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

@@ -151,23 +151,23 @@ namespace GFGGame
             int result = await LoginHelper.ReqGetLatestNotice();
             if (result == ErrorCode.ERR_Success)
             {
-                NoticeInfo noticeInfo = NoticeDataManager.Instance.LastNoticeInfo;
-                // Debug.Log("noticeTime:" + noticeInfo.time + "  currentTime:" + (TimeInfo.Instance.ServerNow() / 1000));
-
-                long noticeTime =
-                    TimeUtil.GetDayTimeBySec(noticeInfo.time, CommonDataManager.Tables.TblGlobalCfg.RefreshTime);
-                long currentTime =
-                    TimeUtil.GetDayTimeBySec(TimeInfo.Instance.ServerNow(),
-                        CommonDataManager.Tables.TblGlobalCfg.RefreshTime);
-                // Debug.Log("noticeTime:" + noticeTime + "  currentTime:" + currentTime);
-                if ((currentTime - noticeTime) / 1000 / TimeUtil.SECOND_PER_DAY < 3)
-                {
-                    ViewManager.Show<SystemNoticeView>(new object[]
-                    {
-                        NoticeDataManager.Instance.LastNoticeInfo.title,
-                        NoticeDataManager.Instance.LastNoticeInfo.content
-                    });
-                }
+                // NoticeInfo noticeInfo = NoticeDataManager.Instance.LastNoticeInfo;
+                // // Debug.Log("noticeTime:" + noticeInfo.time + "  currentTime:" + (TimeInfo.Instance.ServerNow() / 1000));
+                //
+                // long noticeTime =
+                //     TimeUtil.GetDayTimeBySec(noticeInfo.time, CommonDataManager.Tables.TblGlobalCfg.RefreshTime);
+                // long currentTime =
+                //     TimeUtil.GetDayTimeBySec(TimeInfo.Instance.ServerNow(),
+                //         CommonDataManager.Tables.TblGlobalCfg.RefreshTime);
+                // // Debug.Log("noticeTime:" + noticeTime + "  currentTime:" + currentTime);
+                // if ((currentTime - noticeTime) / 1000 / TimeUtil.SECOND_PER_DAY < 3)
+                // {
+                //     ViewManager.Show<SystemNoticeView>(new object[]
+                //     {
+                //         NoticeDataManager.Instance.LastNoticeInfo.title,
+                //         NoticeDataManager.Instance.LastNoticeInfo.content
+                //     });
+                // }
             }
             else
             {

+ 2 - 1
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/Login/LoginHelper.cs

@@ -322,8 +322,9 @@ namespace ET
             //1.连接Realm,获取分配的Gate
             R2C_LoginRealm r2C_LoginRealm = null;
 
+            zoneScene.GetComponent<SessionComponent>().AccountSession?.Dispose();
             Session session = zoneScene.GetComponent<NetWSComponent>()
-                .Create(NetworkHelper.ToIPEndPoint(realmAddress));
+                .Create(NetworkHelper.ToIPEndPoint("http://192.168.1.191:11002/"));
             try
             {
                 r2C_LoginRealm = (R2C_LoginRealm)await session.Call(new C2R_LoginRealm()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -32,7 +32,7 @@ namespace GFGGame
             var result = JsonMapper.ToObject<Result>(json);
             LoginAddress = result.loginApiUrl;
             //LoginAddress = "43.139.184.240:10003";
-            LoginAddress = "192.168.1.191:20005";//测试地址
+            LoginAddress = "192.168.1.191:11005";//测试地址
             showGM = int.Parse(result.showGM);
             if(!string.IsNullOrEmpty(result.openTime))
             {

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -268,8 +268,8 @@ namespace GFGGame
         private void ResetLoginButton()
         {
             _ui.m_btnLogout.visible = false;
-            _ui.m_btnTapLogin.visible = QDManager.IsTaptap;
-            _ui.m_btnStart.visible = !QDManager.IsTaptap;
+            _ui.m_btnTapLogin.visible = false;
+            _ui.m_btnStart.visible = true;
         }
         private void OnBtnAgreeCklick()
         {