web/web/GwSp.ashx
@@ -651,8 +651,11 @@ cTPattern.SpID = context.GetString("SpID"); cTPattern.Enabled = context.GetInt("enabled"); cTPattern.Pattern = context.GetString("patternContent"); if (!Regex.IsMatch(o.SpID, "^\\d{6}$")) throw new Exception("账号必须为6位数字!"); string pattern = @"^[A-Za-z0-9]+$"; //判断是字符或数字 //if (!Regex.IsMatch(o.SpID, "^\\d{6}$")) // throw new Exception("账号必须为6位数字!"); if (!Regex.IsMatch(o.SpID, "^[A-Za-z0-9]{6}$")) throw new Exception("账号必须为6位字符或数字!"); if (o.AccessCodeMode == 1) { if (o.DiverterID != 0)