Ver Fonte

断线重连雅集答题提示答题未开启问题

huangxiaoyue há 1 ano atrás
pai
commit
3df2c92c10

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -360,7 +360,7 @@ namespace GFGGame
             if (LeagueDataManager.Instance.Type == LeagueJoinType.Join) {
                 LeagueSproxy.GetTeapartyMatchingInfos(RoleDataManager.roleId).Coroutine();
                 LeagueSproxy.GetTeapartyInfos().Coroutine();
-                //LeagueSproxy.ReqJoinAnswer().Coroutine();
+                LeagueSproxy.ReqJoinAnswer().Coroutine();
             }
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/LeagueSproxy.cs

@@ -731,6 +731,11 @@ namespace GFGGame
         //加入答题
         public static async ETTask<bool> ReqJoinAnswer()
         {
+            if (LeagueDataManager.Instance.GetNumeriValue(LeagueNumericType.LeagueQuestionStatus) ==
+               LeagueQuestionStatus.End)
+            {
+                return false;
+            }
             S2C_JoinAnswer response = null;
             response = (S2C_JoinAnswer)await MessageHelper.SendToServer(new C2S_JoinAnswer() { RoleId = RoleDataManager.roleId });
             if (response != null)