1 cef放到后面启动后dpi不对问题暂时回避(最先启动,如果切换pdd temu则重启软件)
2 上货发货时间统一改成48销售
This commit is contained in:
1 parent
5030a874ea
commit
caf8ba3fe8
7 files changed
+193
-169
No files matched your search
+7
-2
@@ -152,11 +152,15 @@ namespace TemuKJD
|
||||
instance = this;
|
||||
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
|
||||
|
||||
CefInit();
|
||||
//CefInit();
|
||||
}
|
||||
|
||||
public static void CefInit()
|
||||
{
|
||||
var initFormSettings = NaiBa.Util.Helper.ConfigHelper.LoadConfig<InitFormSettings>("initFormSettings");
|
||||
if (initFormSettings == null)
|
||||
initFormSettings = new InitFormSettings();
|
||||
|
||||
var usePddWorkbanch = NaiBa.Util.Helper.ConfigHelper.LoadConfig<bool?>("use_pdd_workbanch");
|
||||
if (usePddWorkbanch == null)
|
||||
usePddWorkbanch = true;
|
||||
@@ -171,7 +175,8 @@ namespace TemuKJD
|
||||
//settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36";
|
||||
//settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36";
|
||||
settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
|
||||
if (BaseClass.MainPath == "binxixi" && BaseClass.UsePddWorkbanch)
|
||||
//if (BaseClass.MainPath == "binxixi" && BaseClass.UsePddWorkbanch)
|
||||
if (initFormSettings.LoginType.ToLower() == "pdd")
|
||||
settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.5.40.8 Safari/537.36 PddWorkbench-Online PddBrowser pdd_windows_version/3.0.3.12";
|
||||
settings.CefCommandLineArgs.Add("disable-gpu", "1"); // 禁止显卡加速
|
||||
settings.IgnoreCertificateErrors = true;
|
||||
|
||||
Reference in new issue
Block a user