cef缓存还原,上货价格同步崩溃问题修复

This commit is contained in:
wule authored and chfei committed 2026-09-15 14:30:29 +08:00
1 parent 0d98b80a3c
commit 085f275620
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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");
@@ -2153,7 +2153,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<string, int> specPriceDic = new Dictionary<string, int>();
@@ -2191,7 +2191,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<string, int> specPriceDic = new Dictionary<string, int>();