Browse Source

茶话会换雅集重复参加提示

huangxiaoyue 1 year ago
parent
commit
7146150a20
1 changed files with 6 additions and 0 deletions
  1. 6 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnswerView.cs

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnswerView.cs

@@ -87,6 +87,12 @@ namespace GFGGame
         private void OnBtnTeaPartyClick()
         {
             Hide();
+            var roleTeapartyInfo = LeagueDataManager.Instance.RoleTeapartyInfo;
+            if (roleTeapartyInfo.IsQuitTeaParty && roleTeapartyInfo.LastOpenCfgId != 0 && roleTeapartyInfo.LastOpenCfgId == LeagueDataManager.Instance.TeaPartyId) {
+                PromptController.Instance.ShowFloatTextPrompt("该玩法不可以重复参加哦");
+                return;
+            }
+
             if (LeagueDataManager.Instance.TeaPartyStatus == LeagueTeaPartyStatus.YesGo && !LeagueDataManager.Instance.RoleTeapartyInfo.IsComplete && LeagueDataManager.Instance.RoleTeapartyInfo.Status)
                 ViewManager.Show<LeagueTeaPartyShowView>(null, new object[] { typeof(LeagueView).FullName, null });
             else