From ec02e2a0e4104f696d1de39315fb2eb2387ce4d8 Mon Sep 17 00:00:00 2001 From: wule Date: Fri, 18 Sep 2026 15:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8B=8D=E5=8D=95=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29WxOrderWpf/StartUp.cs | 8 ++-- .../Views/AutoBuyIntroductionView‌.xaml | 45 ++++++++++++++++--- .../Views/AutoBuyIntroductionView‌.xaml.cs | 31 ++++++++++--- AllBase/Helper/GlobalConfig.cs | 3 +- AllBase/Model/Config/AutoBuyConfig.cs | 20 +++++++++ Work/_29Tools/Forms/PddMobileBuyOrderForm.cs | 17 +++++-- 6 files changed, 107 insertions(+), 17 deletions(-) create mode 100644 AllBase/Model/Config/AutoBuyConfig.cs diff --git a/29WxOrderWpf/StartUp.cs b/29WxOrderWpf/StartUp.cs index ac5f774..6cb9175 100644 --- a/29WxOrderWpf/StartUp.cs +++ b/29WxOrderWpf/StartUp.cs @@ -28,9 +28,11 @@ namespace _29WxOrderWpf GlobalConfig.lstWXShopTokenInfo = new ConcurrentList(); // 自动拍单支付宝密码 - GlobalConfig.AlipayPassword = ConfigHelper.LoadConfig>("ali_pay_password")?.FirstOrDefault(); - if (GlobalConfig.AlipayPassword == null) - GlobalConfig.AlipayPassword = ""; + var alipayPassword = ConfigHelper.LoadConfig>("ali_pay_password")?.FirstOrDefault() ?? ""; + + GlobalConfig.AutoBuyConfig = ConfigHelper.LoadConfig("auto_buy_config"); + if (GlobalConfig.AutoBuyConfig == null) + GlobalConfig.AutoBuyConfig = new AutoBuyConfig() { AlipayPassword = alipayPassword, IsLimitMinProfit = false, MinProfit = 0 }; new WxOrder.Framework.Startup(); } diff --git a/29WxOrderWpf/Views/AutoBuyIntroductionView‌.xaml b/29WxOrderWpf/Views/AutoBuyIntroductionView‌.xaml index 88e8087..0597505 100644 --- a/29WxOrderWpf/Views/AutoBuyIntroductionView‌.xaml +++ b/29WxOrderWpf/Views/AutoBuyIntroductionView‌.xaml @@ -92,10 +92,45 @@ FontSize="12" Style="{StaticResource BasePageButtonLightStyle}" Visibility="Visible" /> - + + + + + 元 + +