From 6e3a100d0a7d9fb93ca4f02f9c058cb396f4d5c6 Mon Sep 17 00:00:00 2001 From: wule Date: Tue, 15 Sep 2026 10:16:18 +0800 Subject: [PATCH] =?UTF-8?q?cef=E7=BC=93=E5=AD=98=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E8=B4=A7=E4=BB=B7=E6=A0=BC=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=B4=A9=E6=BA=83=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMUKJD/MainForm.cs | 6 +++--- TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 bd6664c..5a8f9fd 100644 --- a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs @@ -2053,7 +2053,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(); @@ -2091,7 +2091,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();