优化机会商品采集
This commit is contained in:
1 parent
d70b2eb6a7
commit
88675637ab
4 files changed
+123
-34
No files matched your search
+3
-2
@@ -49,6 +49,7 @@ namespace TemuKJD
|
||||
public partial class MainForm : BaseForm
|
||||
{
|
||||
public static string sCurrentModule = string.Empty;
|
||||
public static int ProcessCount = 0;
|
||||
public static MainForm instance;
|
||||
|
||||
public string LoginType;
|
||||
@@ -191,9 +192,9 @@ namespace TemuKJD
|
||||
settings.LogSeverity = LogSeverity.Disable;
|
||||
|
||||
var pName = Process.GetCurrentProcess().ProcessName;
|
||||
var pCount = Process.GetProcesses().Count(p => p.ProcessName == pName);
|
||||
ProcessCount = Process.GetProcesses().Count(p => p.ProcessName == pName);
|
||||
//138版cef自己不会分缓存,会因占用导致报错,手动分缓存
|
||||
settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + pCount);
|
||||
settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + ProcessCount);
|
||||
//settings.CachePath = null; //禁止缓存
|
||||
//settings.CefCommandLineArgs.Add("enable-javascript", "1");
|
||||
//settings.CefCommandLineArgs.Add("disable-features", "NetworkService,NetworkServiceInProcess");
|
||||
|
||||
Reference in new issue
Block a user