修复拍单余额查看闪退bug 优化每单拍单金额逻辑
This commit is contained in:
1 parent
ec13db7cc1
commit
ba6da5e85f
2 files changed
+6
No files matched your search
@@ -61,6 +61,10 @@ 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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,6 +192,8 @@ namespace Work._29Tools.Forms.UserForms
|
||||
paymentList = JsonHelper.DeserializeJsonToList<user_payment_record>(JsonHelper.JObjectParse(html3)["data"].ParseToString());
|
||||
foreach (var payment in paymentList)
|
||||
{
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rowIndex = this.dgvPayment.Rows.Add(
|
||||
|
||||
Reference in new issue
Block a user