zhaoyang преди 2 години
родител
ревизия
3aa863f2d9

+ 0 - 1
GameClient/Assets/Game/HotUpdate/Data/LeagueDataManager.cs

@@ -40,7 +40,6 @@ namespace GFGGame
             ListApplyDatas.Clear();
             ListLogDatas.Clear();
             ListAnsweringDatas.Clear();
-            LastAnswerRoleData = null;
             LeagueNumber.Clear();
         }
         public void SetNumeric(int type, long value)

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Data/VO/LeagueData.cs

@@ -63,10 +63,10 @@ namespace GFGGame
     }
     public class LeagueLastAnswerRoleData
     {
-        public long RightRoleId;//上题答对玩家Id
+        public long RightRoleId = 0;//上题答对玩家Id
         public int LastQuestionResult = 3;//上题回答结果1:有人答对题目 2:无人答对 3:答题结束
-        public int LastQuestionId;//上题id
-        public string MyAnswer;//我上题的答案
+        public int LastQuestionId = 1;//上题id
+        public string MyAnswer = "";//我上题的答案
     }
     public class LeagueAnswerData
     {

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs

@@ -69,13 +69,13 @@ namespace GFGGame
         {
             base.OnShown();
             _dataManager = LeagueDataManager.Instance;
-            UpdateQuestionState();
-            UpdateChatList();
+
             bool result = await LeagueSproxy.ReqJoinAnswer();
             if (result)
             {
                 UpdateJoinList();
             }
+            UpdateQuestionState();
             UpdateChatList();
             Timers.inst.Add(1, 0, UpdateActiveTime);
         }
@@ -147,7 +147,7 @@ namespace GFGGame
                 endTime = TimeUtil.GetCurDayTime(GlobalCfgArray.globalCfg.leagueQuestionEndTime);
                 str = "活动剩余时间 ";
             }
-            if (endTime - curTime < 0)
+            if (endTime - curTime < 0 && LeagueDataManager.Instance.GetNumeriValue(LeagueNumericType.LeagueQuestionStatus) == LeagueQuestionStatus.End)
             {
                 Timers.inst.Remove(UpdateResultTime);
                 ViewManager.GoBackFrom(typeof(LeagueAnsweringView).FullName);