From 74222afacf6604df68bbbd3dbced269ff1f3b93c Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Fri, 3 Jan 2025 09:08:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A0=E6=B3=95=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Script/loginScripts/LoginPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index 76387db1..82b6866b 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -160,10 +160,10 @@ public class LoginPanel : Base if (string.IsNullOrEmpty(input)) return false; // 检查长度限制 - if (input.Length < 3 || input.Length > 20) return false; + //if (input.Length < 3 || input.Length > 20) return false; // 检查首字符是否为字母 - if (!char.IsLetter(input[0])) return false; + //if (!char.IsLetter(input[0])) return false; // 检查是否只包含字母、数字和下划线 foreach (char c in input)