研究微信免审上架,其他一些功能优化

This commit is contained in:
wule committed 2026-01-21 19:13:58 +08:00
1 parent 42be98616b
commit 6d7b9d7b56
13 files changed
+812 -209

No files matched your search

+9 -2
View File
@@ -207,6 +207,13 @@ namespace TemuKJD
//settings.CefCommandLineArgs.Add("disable-features", "NetworkService,NetworkServiceInProcess");
settings.CefCommandLineArgs.Add("--disable-web-security", "1");
//settings.CefCommandLineArgs.Add("--disable-request-handling-for-testing", "1");
#if DEBUG
settings.LogFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "cef_log.txt");
// 设置日志级别为详细
settings.LogSeverity = LogSeverity.Verbose;
// 捕获JavaScript异常堆栈(最多32帧)
settings.UncaughtExceptionStackSize = 32;
#endif
Cef.Initialize(settings);
}
@@ -436,7 +443,7 @@ namespace TemuKJD
return true;
}
#region 内存回收
#region 内存回收
[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")]
public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize);
[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
@@ -454,7 +461,7 @@ namespace TemuKJD
SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1);
}
}
#endregion
#endregion
/// <summary>
/// 通过click事件初始化所有模块,避免首次用户点击一级模块时客户端出现卡顿现象