1更新cef版本到138 2其他一些小改动

This commit is contained in:
wule_5900x committed 2025-08-13 15:22:25 +08:00
1 parent 800ccb857d
commit c5be88568c
161 files changed
+1670 -6757

No files matched your search

+34 -34
View File
@@ -374,22 +374,22 @@ namespace Work.CollectClass
public void Ini()
{
string fileName = "lbigdata.dll";
if (!FileBase.Exists(fileName))
{
GetHtml.DownloadFile("http://dl.qixiaoke.com/lbigdata.html", fileName);
}
string[] l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
if (l == null || l.Length < 300000)
{
GetHtml.DownloadFile("http://dl.qixiaoke.com/lbigdata.html", fileName);
l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
}
if (l == null || l.Length < 300000)
{
MessageBox.Show("初始化大数据异常,请检查网络", "提示");
return;
}
//string fileName = "lbigdata.dll";
//if (!FileBase.Exists(fileName))
//{
// GetHtml.DownloadFile("http://dl.qixiaoke.com/lbigdata.html", fileName);
//}
//string[] l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
//if (l == null || l.Length < 300000)
//{
// GetHtml.DownloadFile("http://dl.qixiaoke.com/lbigdata.html", fileName);
// l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
//}
//if (l == null || l.Length < 300000)
//{
// MessageBox.Show("初始化大数据异常,请检查网络", "提示");
// return;
//}
}
public void IniKeyword()
@@ -402,24 +402,24 @@ namespace Work.CollectClass
NoKeyword.Add(l[i].Trim());
}
//string fileName = "lbigdata.dll";
string fileName = "Segment.dll";
l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
if (l == null || l.Length < 300000)
{
MessageBox.Show("初始化大数据失败,请重新打开软件", "提示");
return;
}
for (int i = 0; i < l.Length; i++)
{
if (string.IsNullOrEmpty(l[i]) || !l[i].Contains("\t"))
continue;
string[] ll = l[i].Split('\t');
string keyword = ll[0].Replace(" ", "");
int rank = int.Parse(ll[1]);
if (!Keywords.ContainsKey(keyword))
Keywords.Add(keyword, rank);
}
////string fileName = "lbigdata.dll";
//string fileName = "Segment.dll";
//l = FileBase.ReadAllLines(fileName, Encoding.UTF8);
//if (l == null || l.Length < 300000)
//{
// MessageBox.Show("初始化大数据失败,请重新打开软件", "提示");
// return;
//}
//for (int i = 0; i < l.Length; i++)
//{
// if (string.IsNullOrEmpty(l[i]) || !l[i].Contains("\t"))
// continue;
// string[] ll = l[i].Split('\t');
// string keyword = ll[0].Replace(" ", "");
// int rank = int.Parse(ll[1]);
// if (!Keywords.ContainsKey(keyword))
// Keywords.Add(keyword, rank);
//}
}
/// <summary>
/// 删除下架产品