Fix bug - 统一开始提现方法
This commit is contained in:
parent
7bb5217fc8
commit
c2191c5990
|
|
@ -129,18 +129,20 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
|||
} else {
|
||||
val hasBindBank = AccountManager.hasValidBankInfo()
|
||||
if (!hasBindBank) {
|
||||
WithdrawBindBankDialog(this@WithDrawActivity, { cashNum -> requestInit(cashNum) }).setWithDrawCashNum(cashNum).show()
|
||||
WithdrawBindBankDialog(this@WithDrawActivity, ::startRealWithdraw ).setWithDrawCashNum(cashNum).show()
|
||||
} else {
|
||||
WithdrawInfoConfirmDialog(this@WithDrawActivity, {
|
||||
cashNum -> requestInit(cashNum)
|
||||
WithdrawManager.instance().setItemStarted(0)
|
||||
}).setWithDrawCashNum(cashNum).show()
|
||||
WithdrawInfoConfirmDialog(this@WithDrawActivity, ::startRealWithdraw).setWithDrawCashNum(cashNum).show()
|
||||
}
|
||||
}
|
||||
|
||||
StatisticUtil.reportEvents(StatisticUtil.KEY_Withdrawal_finsh, mapOf("Withdrawal_Position" to cashNum))
|
||||
}
|
||||
|
||||
private fun startRealWithdraw(cashNum: Double) {
|
||||
requestInit(cashNum)
|
||||
WithdrawManager.instance().setItemStarted(0)
|
||||
}
|
||||
|
||||
private fun updateUICashTotal() {
|
||||
binding.tvCashTotal.text = String.format("%.2f", AccountManager.getCash())
|
||||
binding.tvAllCashHasWithdrawed.text = buildString {
|
||||
|
|
|
|||
Loading…
Reference in New Issue