diff --git a/TEMUKJD/MainForm.cs b/TEMUKJD/MainForm.cs index 0d74cb1..246063b 100644 --- a/TEMUKJD/MainForm.cs +++ b/TEMUKJD/MainForm.cs @@ -209,9 +209,9 @@ namespace TemuKJD var pName = Process.GetCurrentProcess().ProcessName; ProcessCount = Process.GetProcesses().Count(p => p.ProcessName == pName); //138版cef自己不会分缓存,会因占用导致报错,手动分缓存 - //settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + ProcessCount); - settings.RootCachePath = Path.Combine(Environment.CurrentDirectory, "Cache"); - settings.CachePath = Path.Combine(settings.RootCachePath, ProcessCount.ParseToString()); + settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + ProcessCount); + //settings.RootCachePath = Path.Combine(Environment.CurrentDirectory, "Cache"); + //settings.CachePath = Path.Combine(settings.RootCachePath, ProcessCount.ParseToString()); //settings.CachePath = null; //禁止缓存 //settings.CefCommandLineArgs.Add("enable-javascript", "1"); //settings.CefCommandLineArgs.Add("disable-features", "NetworkService,NetworkServiceInProcess"); diff --git a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs index 862e12a..701099d 100644 --- a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs @@ -2057,7 +2057,7 @@ namespace TemuKJD.WXForms.ProductForms // 同颜色规格向上浮动同价格 if (chkSameSpecPriceUp.Checked) { - var priceTextLst = dbProd.price_text.Split('-'); + var priceTextLst = dbProd.price_text.ParseToString().Split('-'); if (priceTextLst.Length != 2 || priceTextLst[0] != priceTextLst[1]) { Dictionary specPriceDic = new Dictionary(); @@ -2095,7 +2095,7 @@ namespace TemuKJD.WXForms.ProductForms // 同颜色规格向下浮动同价格 if (chkSameSpecPriceDown.Checked) { - var priceTextLst = dbProd.price_text.Split('-'); + var priceTextLst = dbProd.price_text.ParseToString().Split('-'); if (priceTextLst.Length != 2 || priceTextLst[0] != priceTextLst[1]) { Dictionary specPriceDic = new Dictionary();