使用OpertionUUID,提到可能没有payoutId

This commit is contained in:
renhaoting 2026-01-07 16:12:05 +08:00
parent decd41b82d
commit 24ab07d4b2
4 changed files with 10 additions and 14 deletions

View File

@ -230,7 +230,7 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
private fun showTransactionResultDialog(record: RecordCash) {
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo)
WithdrawManager.instance().updateRecordHasNotifyState(record.uuid)
when (record.withdrawState) {
TRANSACTION_STATE_SUCCESS -> {
showSuccessDialog(record.amountNum)

View File

@ -173,7 +173,7 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
private fun showTransactionResultDialog(record: RecordCash) {
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo)
WithdrawManager.instance().updateRecordHasNotifyState(record.uuid)
when (record.withdrawState) {
TRANSACTION_STATE_SUCCESS -> {
showSuccessDialog(record.amountNum)

View File

@ -89,12 +89,8 @@ class RecordsManager private constructor() {
return mCashHelper.getHasWithdrawSuccessCashCount(itemIndex)
}
fun getRecord(recordNo: String): RecordCash? {
return mCashHelper.getWithdrawRecord(recordNo)
}
fun updateRecordHasNotifyState(recordNo: String) {
return mCashHelper.updateRecordHasNotifyState(recordNo)
fun updateRecordHasNotifyState(operationUUID: String) {
return mCashHelper.updateRecordHasNotifyState(operationUUID)
}
fun saveNewWithdrawRecord(recordNo: RecordCash) {
@ -162,11 +158,11 @@ class CashRecordHelper() : BaseRecordHelper<RecordCash>() {
return count
}
fun getWithdrawRecord(recordNo: String): RecordCash? {
fun getWithdrawRecord(operationUUID: String): RecordCash? {
try {
mRecordLocker.lock()
mRecordList.forEachIndexed { index, record ->
if (record.payOutReplyNo == recordNo) {
if (record.uuid == operationUUID) {
return record
}
}
@ -176,8 +172,8 @@ class CashRecordHelper() : BaseRecordHelper<RecordCash>() {
return null
}
fun updateRecordHasNotifyState(recordNo: String) {
val recordBean: RecordCash? = getWithdrawRecord(recordNo)
fun updateRecordHasNotifyState(operationUUID: String) {
val recordBean: RecordCash? = getWithdrawRecord(operationUUID)
recordBean?.let {
it.hasShowResultDialog = true
saveRecordList2Sp()

View File

@ -210,8 +210,8 @@ class WithdrawManager private constructor() {
}
}
fun updateRecordHasNotifyState(recordNo: String) {
RecordsManager.instance().updateRecordHasNotifyState(recordNo)
fun updateRecordHasNotifyState(operationUUID: String) {
RecordsManager.instance().updateRecordHasNotifyState(operationUUID)
}
fun saveNewWithdrawRecord(newRecord: RecordCash) {