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" /> - + + + + + 元 + +