【提现】0.1 档位只能提现一次,在成功提现之后 0.1 档位还可以重复提现
This commit is contained in:
parent
292c187a7a
commit
439d04706b
|
|
@ -113,7 +113,8 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
|||
updateUICashTotal()
|
||||
|
||||
// TaskManager.instance().newbieFirstWithdrawStatus().getStatusBean().hasWithdrawed
|
||||
if (WithdrawManager.instance().getItemState(0, 0) == STATE_WITHDRAW_SUCCESS) {
|
||||
if (WithdrawManager.instance().getItemState(0, 0) == STATE_WITHDRAW_SUCCESS
|
||||
|| TaskManager.instance().newbieFirstWithdrawStatus().smallCashHasWithdrawed()) {
|
||||
withdraw01.isVisible = false
|
||||
}
|
||||
|
||||
|
|
@ -158,6 +159,11 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
|||
mItemViewList.forEach {
|
||||
it.updateProgressAndButUI()
|
||||
}
|
||||
|
||||
if (WithdrawManager.instance().getItemState(0, 0) == STATE_WITHDRAW_SUCCESS
|
||||
|| TaskManager.instance().newbieFirstWithdrawStatus().smallCashHasWithdrawed()) {
|
||||
binding.withdraw01.isVisible = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -715,7 +715,9 @@ class WithdrawManager private constructor() {
|
|||
"Withdrawal_Day" to 1))
|
||||
|
||||
// 5. 记录小额提现 已提现
|
||||
TaskManager.instance().newbieFirstWithdrawStatus().setSmallCashHasWithdrawed()
|
||||
if (withdrawRecord.amountNum == 0.1) {
|
||||
TaskManager.instance().newbieFirstWithdrawStatus().setSmallCashHasWithdrawed()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,8 @@ class NewbieFirstWithdrawHelper: BaseTaskHelper<TaskStateNewBieFirstWithDraw, Ta
|
|||
saveState2Sp()
|
||||
}
|
||||
|
||||
fun smallCashHasWithdrawed(): Boolean {
|
||||
return mStateBean.hasWithdrawed
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue