拍单功能继续优化
This commit is contained in:
1 parent
29042424dc
commit
34c51c6fcd
64 files changed
+7138
-305
No files matched your search
@@ -10,6 +10,7 @@ namespace AllBase
|
||||
{
|
||||
public static string WordBase = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
|
||||
public static string NumberBase = "0123456789";
|
||||
public static string WordNumberBase = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz01234567890123456789";
|
||||
public static string SignWordBase = ".`~^*_| -#$%&?";
|
||||
|
||||
public static int GetId(int max)
|
||||
@@ -40,6 +41,15 @@ namespace AllBase
|
||||
}
|
||||
return s.ToString();
|
||||
}
|
||||
public static string GetWordNumber(int len)
|
||||
{
|
||||
StringBuilder s = new StringBuilder();
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
s.Append(WordNumberBase[new Random(Guid.NewGuid().GetHashCode()).Next(WordNumberBase.Length)]);
|
||||
}
|
||||
return s.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取新的属性名称
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user