优化读单
This commit is contained in:
1 parent
171064f03f
commit
5e453e2927
10 files changed
+566
-402
No files matched your search
@@ -93,7 +93,7 @@ namespace TemuKJD.ToolForms
|
||||
// (拍单后)回调函数,过滤订单
|
||||
private Func<oms_wei_order_info, bool, Task> filterOrderAction = null;
|
||||
// (拍单后)回调函数,更新拍单余额
|
||||
private Action updateBalanceAction = null;
|
||||
private Func<Task> updateBalanceAction = null;
|
||||
|
||||
string _txtBuyTransitWarehouseStr = "";
|
||||
/// <summary>
|
||||
@@ -145,7 +145,7 @@ namespace TemuKJD.ToolForms
|
||||
bool HasChangeAddress = false;
|
||||
|
||||
|
||||
public PddMobileBuyOrderForm(Func<oms_wei_order_info, bool, Task> filterOrder, Action updateBalance, oms_wei_order_item_info orderItemInfo, BuyerLoginInfo buyerInfo, WXBuyMapInfo buy_map = null)
|
||||
public PddMobileBuyOrderForm(Func<oms_wei_order_info, bool, Task> filterOrder, Func<Task> updateBalance, oms_wei_order_item_info orderItemInfo, BuyerLoginInfo buyerInfo, WXBuyMapInfo buy_map = null)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ namespace Work._29Tools.Forms.UserForms
|
||||
public partial class WXGetBalanceQrCodeForm : BaseForms.BaseGeneralForm
|
||||
{
|
||||
// (拍单后)回调函数,更新拍单余额
|
||||
private Action updateBalanceAction = null;
|
||||
private Func<Task> updateBalanceAction = null;
|
||||
|
||||
public WXGetBalanceQrCodeForm(Action updateBalance = null)
|
||||
public WXGetBalanceQrCodeForm(Func<Task> updateBalance = null)
|
||||
{
|
||||
InitializeComponent();
|
||||
updateBalanceAction = updateBalance;
|
||||
@@ -106,7 +106,7 @@ namespace Work._29Tools.Forms.UserForms
|
||||
pictureBox2.Visible = false;
|
||||
}
|
||||
|
||||
private void btnBalanceTopUp_Click(object sender, EventArgs e)
|
||||
private async void btnBalanceTopUp_Click(object sender, EventArgs e)
|
||||
{
|
||||
string url2 = "https://po.e57.cn/prod-api/api/oms-api/alipay/pay";
|
||||
var data = new JObject();
|
||||
@@ -135,7 +135,7 @@ namespace Work._29Tools.Forms.UserForms
|
||||
loginForm.ShowDialog();
|
||||
if (updateBalanceAction != null)
|
||||
{
|
||||
updateBalanceAction();
|
||||
await updateBalanceAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user