From fceead357f54f5a8340707a9633912b0a365d15c Mon Sep 17 00:00:00 2001 From: wule Date: Mon, 18 Aug 2025 16:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=9C=8D=E5=8A=A1=EF=BC=88qixiaoke=EF=BC=89=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AllBase/BaseClass.cs | 4 +- AllBase/Model/Result/TemuPriceAdjustInfo.cs | 4 ++ AllBase/Segment.cs | 56 ++++++++++----------- 3 files changed, 34 insertions(+), 30 deletions(-) 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); + //} } /// /// 二分法提取关键词