优化读单
This commit is contained in:
1 parent
171064f03f
commit
5e453e2927
10 files changed
+566
-402
No files matched your search
@@ -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