diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index 1c091bf..cd3fc73 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -27,8 +27,8 @@ namespace AllBase /// /// 版本ID /// - public static int VersionCount = 530; - //public static int VersionCount = 530; + public static int VersionCount = 531; + //public static int VersionCount = 531; /// /// 版本号 diff --git a/AllBase/Model/Result/TemuPriceAdjustInfo.cs b/AllBase/Model/Result/TemuPriceAdjustInfo.cs index 4665f8a..3d948e6 100644 --- a/AllBase/Model/Result/TemuPriceAdjustInfo.cs +++ b/AllBase/Model/Result/TemuPriceAdjustInfo.cs @@ -70,6 +70,10 @@ namespace AllBase.Model.Result /// 是否已取消调价 /// public bool isRefuseAdjust { get; set; } = false; + /// + /// 建立每页唯一的snTag以便一起提交同一页的调价数据 + /// + public string snTag { get; set; } } public class SkuInfoItem diff --git a/AllBase/Segment.cs b/AllBase/Segment.cs index 4a9c57c..bdae44d 100644 --- a/AllBase/Segment.cs +++ b/AllBase/Segment.cs @@ -37,34 +37,34 @@ namespace AllBase /// public static void Int() { - //MysqlHelper.ErrorString += "正在初始化分词库\r\n"; - string f = GetPatch() + "\\Segment.dll"; - if (!File.Exists(f)) - GetHtml.DownloadFile("http://dl.1n11.com/Segment.xml", f); - if (!File.Exists(f)) - { - BaseClass.ViewCode += "分词库加载失败,请前往官网下载完整版本"; - return; - } - if (WordList.Count > 0) - return; - for (int i = 2; i < 10; i++) - { - List w = new List(); - WordList.Add(i, w); - } - string[] l = File.ReadAllLines(f, Encoding.UTF8); - for (int i = 0; i < l.Length; i++) - { - if (string.IsNullOrEmpty(l[i])) - continue; - string key = l[i]; - if (key.Contains("\t") && key.IndexOf("\t")>0) - key = key.Substring(0, key.IndexOf("\t")); - if (key.Length < 2 || key.Length > 8) - continue; - WordList[key.Length].Add(key); - } + ////MysqlHelper.ErrorString += "正在初始化分词库\r\n"; + //string f = GetPatch() + "\\Segment.dll"; + //if (!File.Exists(f)) + // GetHtml.DownloadFile("http://dl.1n11.com/Segment.xml", f); + //if (!File.Exists(f)) + //{ + // BaseClass.ViewCode += "分词库加载失败,请前往官网下载完整版本"; + // return; + //} + //if (WordList.Count > 0) + // return; + //for (int i = 2; i < 10; i++) + //{ + // List w = new List(); + // WordList.Add(i, w); + //} + //string[] l = File.ReadAllLines(f, Encoding.UTF8); + //for (int i = 0; i < l.Length; i++) + //{ + // if (string.IsNullOrEmpty(l[i])) + // continue; + // string key = l[i]; + // if (key.Contains("\t") && key.IndexOf("\t")>0) + // key = key.Substring(0, key.IndexOf("\t")); + // if (key.Length < 2 || key.Length > 8) + // continue; + // WordList[key.Length].Add(key); + //} } /// /// 二分法提取关键词