From ba6da5e85fea77bb5b52f25b6393362d3fc8d507 Mon Sep 17 00:00:00 2001 From: wule Date: Mon, 9 Nov 2026 11:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=8D=E5=8D=95=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E6=9F=A5=E7=9C=8B=E9=97=AA=E9=80=80bug=20=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=AF=8F=E5=8D=95=E6=8B=8D=E5=8D=95=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29WxOrderWpf/StartUp.cs | 6 +++++- Work/_29Tools/Forms/UserForms/WXGetBalanceQrCodeForm.cs | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/29WxOrderWpf/StartUp.cs b/29WxOrderWpf/StartUp.cs index 06276b9..f5c80c5 100644 --- a/29WxOrderWpf/StartUp.cs +++ b/29WxOrderWpf/StartUp.cs @@ -61,7 +61,11 @@ namespace _29WxOrderWpf { BaseClass.Balance = BaseRegex.GetDecimalJson(ref html, "balance"); MainWindow.Instance.Balance = BaseClass.Balance.ToString("0.00"); - } + + // 更新下每单扣费金额 + BaseClass.PostagePerOrder = Math.Max(2.2m, BaseRegex.GetDecimalJson(ref html, "postage_per_order")); + BaseClass.RefundPostagePerOrder = Math.Max(2.5m, BaseRegex.GetDecimalJson(ref html, "refund_postage_per_order")); + } } } } diff --git a/Work/_29Tools/Forms/UserForms/WXGetBalanceQrCodeForm.cs b/Work/_29Tools/Forms/UserForms/WXGetBalanceQrCodeForm.cs index ec7ba25..f516212 100644 --- a/Work/_29Tools/Forms/UserForms/WXGetBalanceQrCodeForm.cs +++ b/Work/_29Tools/Forms/UserForms/WXGetBalanceQrCodeForm.cs @@ -192,6 +192,8 @@ namespace Work._29Tools.Forms.UserForms paymentList = JsonHelper.DeserializeJsonToList(JsonHelper.JObjectParse(html3)["data"].ParseToString()); foreach (var payment in paymentList) { + if (!this.Created) + return; Invoke(new Action(() => { var rowIndex = this.dgvPayment.Rows.Add(