From 2859edcc89e5a698d5eb40d081aaea4cbfeffd8d Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Wed, 7 Jan 2026 15:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E6=94=B6=E6=8F=90=E7=8E=B0=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=20-=20=E6=98=BE=E7=A4=BAdialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vididin/features/withdraw/WithDrawActivity.kt | 3 +-- .../vididin/features/withdraw/WithDrawSubActivity.kt | 9 ++++----- .../java/com/gamedog/vididin/manager/WithdrawManager.kt | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawActivity.kt b/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawActivity.kt index 93473f1..8c2f097 100644 --- a/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawActivity.kt +++ b/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawActivity.kt @@ -230,15 +230,14 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity() { private fun showTransactionResultDialog(record: RecordCash) { if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) { + WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) when (record.withdrawState) { TRANSACTION_STATE_SUCCESS -> { showSuccessDialog(record.amountNum) - WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) } TRANSACTION_STATE_FAIL -> { showFailDialog(WithdrawManager.instance().getFailHintStrRes(record.withdrawFailType)) - WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) } } } diff --git a/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawSubActivity.kt b/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawSubActivity.kt index 6a74788..e1e185b 100644 --- a/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawSubActivity.kt +++ b/app/src/main/java/com/gamedog/vididin/features/withdraw/WithDrawSubActivity.kt @@ -149,9 +149,9 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity() { VididinEvents.EVENT_WITHDRAW_RESULT_UPDATED -> { try { val record = data.mData as RecordCash - if (record.withdrawItemIndex > 0) { - showTransactionResultDialog(record) - } + if (record.withdrawItemIndex > 0) { + showTransactionResultDialog(record) + } } catch (e: Exception) { e.printStackTrace() } @@ -173,15 +173,14 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity() { private fun showTransactionResultDialog(record: RecordCash) { if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) { + WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) when (record.withdrawState) { TRANSACTION_STATE_SUCCESS -> { showSuccessDialog(record.amountNum) - WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) } TRANSACTION_STATE_FAIL -> { showFailDialog(WithdrawManager.instance().getFailHintStrRes(record.withdrawFailType)) - WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo) } } } diff --git a/app/src/main/java/com/gamedog/vididin/manager/WithdrawManager.kt b/app/src/main/java/com/gamedog/vididin/manager/WithdrawManager.kt index a48ace1..1250639 100644 --- a/app/src/main/java/com/gamedog/vididin/manager/WithdrawManager.kt +++ b/app/src/main/java/com/gamedog/vididin/manager/WithdrawManager.kt @@ -179,7 +179,7 @@ class WithdrawManager private constructor() { NotifyMan.instance().sendEvent(VididinEvents.EVENT_WITHDRAW_ITEM_LIST_CHANGED, null) } - private fun notifyWithdrawResult2(withdrawRecord: RecordCash) { + private fun notifyWithdrawResult(withdrawRecord: RecordCash) { NotifyMan.instance().sendEvent(VididinEvents.EVENT_WITHDRAW_RESULT_UPDATED, NotifyMan.NotifyData(withdrawRecord)) } @@ -617,7 +617,7 @@ class WithdrawManager private constructor() { RecordsManager.instance().updateCashRecord(withdrawRecord) // 2. 事件通知以便更新UI - notifyWithdrawResult2(withdrawRecord) + notifyWithdrawResult(withdrawRecord) // 3. Statistics StatisticUtil.reportEvents(StatisticUtil.KEY_Withdrawal_Reason, mapOf( @@ -642,7 +642,7 @@ class WithdrawManager private constructor() { } // 3. event 通知 - notifyWithdrawResult2(withdrawRecord) + notifyWithdrawResult(withdrawRecord) // 4. Statistic StatisticUtil.reportEvents(StatisticUtil.KEY_Withdrawal_Reason,