update20190108

20190108 V1.0 正式版---
新增配置文件拖动功能,可直接拖拽配置到界面上即可加载配置。
优化HTTP收包固定长度,导致部分情况下大数据包无法接收,同时降低内存申请,在大批量发包情况下不容易引发内存溢出。
This commit is contained in:
shack2
2019-01-08 21:59:58 +08:00
parent c5a3d6ef55
commit b571785802
11 changed files with 495 additions and 433 deletions

View File

@@ -820,6 +820,21 @@ namespace tools
}
return p;
}
public static decimal getLike2(String body1, String body2)
{
String[] keys1 = Regex.Split(body1, "[^\\u0080-\\uFFFF\\w\\-\\d]+");
String[] keys2 = Regex.Split(body2, "[^\\u0080-\\uFFFF\\w\\-\\d]+");
decimal p = 0;
if (keys1.Length > 0)
{
decimal cc = (decimal)((float)keys2.Length * 100 / keys1.Length);
p = decimal.Round(cc, 2);
}
return p;
}
public static String findKeyByStr(String trueString, String falseString, String oldString)
{