浏览代码

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

huangxiaoyue 1 年之前
父节点
当前提交
0e605a525c
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueChangeNoticeView.cs

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

@@ -66,11 +66,11 @@ namespace GFGGame
         }
         }
         private async void OnBtnSaveClick()
         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);
             bool result = await LeagueSproxy.ReqChangeLeagueNotice(_ui.m_txtContent.text);
             if (result)
             if (result)
             {
             {