Browse Source

雅集公告输入限制放开注释

huangxiaoyue 1 year ago
parent
commit
0e605a525c

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/League/LeagueChangeNoticeView.cs

@@ -66,11 +66,11 @@ namespace GFGGame
         }
         private async void OnBtnSaveClick()
         {
-            // if (!Regex.IsMatch(_ui.m_txtContent.text, @"^[\u4e00-\u9fa5_0-9]+$"))
-            // {
-            //     PromptController.Instance.ShowFloatTextPrompt("雅集公告仅允许汉字、数字、下划线");
-            //     return;
-            // }
+            if (!Regex.IsMatch(_ui.m_txtContent.text, @"^[\u4e00-\u9fa5_0-9]+$"))
+            {
+                PromptController.Instance.ShowFloatTextPrompt("雅集公告仅允许汉字、数字、下划线");
+                return;
+            }
             bool result = await LeagueSproxy.ReqChangeLeagueNotice(_ui.m_txtContent.text);
             if (result)
             {