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