使用OpertionUUID,提到可能没有payoutId
This commit is contained in:
parent
decd41b82d
commit
24ab07d4b2
|
|
@ -230,7 +230,7 @@ class WithDrawActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
|
|
||||||
private fun showTransactionResultDialog(record: RecordCash) {
|
private fun showTransactionResultDialog(record: RecordCash) {
|
||||||
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
|
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
|
||||||
WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo)
|
WithdrawManager.instance().updateRecordHasNotifyState(record.uuid)
|
||||||
when (record.withdrawState) {
|
when (record.withdrawState) {
|
||||||
TRANSACTION_STATE_SUCCESS -> {
|
TRANSACTION_STATE_SUCCESS -> {
|
||||||
showSuccessDialog(record.amountNum)
|
showSuccessDialog(record.amountNum)
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
|
|
||||||
private fun showTransactionResultDialog(record: RecordCash) {
|
private fun showTransactionResultDialog(record: RecordCash) {
|
||||||
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
|
if (!record.hasShowResultDialog && record.withdrawState != TRANSACTION_STATE_ONGOING) {
|
||||||
WithdrawManager.instance().updateRecordHasNotifyState(record.payOutReplyNo)
|
WithdrawManager.instance().updateRecordHasNotifyState(record.uuid)
|
||||||
when (record.withdrawState) {
|
when (record.withdrawState) {
|
||||||
TRANSACTION_STATE_SUCCESS -> {
|
TRANSACTION_STATE_SUCCESS -> {
|
||||||
showSuccessDialog(record.amountNum)
|
showSuccessDialog(record.amountNum)
|
||||||
|
|
|
||||||
|
|
@ -89,12 +89,8 @@ class RecordsManager private constructor() {
|
||||||
return mCashHelper.getHasWithdrawSuccessCashCount(itemIndex)
|
return mCashHelper.getHasWithdrawSuccessCashCount(itemIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getRecord(recordNo: String): RecordCash? {
|
fun updateRecordHasNotifyState(operationUUID: String) {
|
||||||
return mCashHelper.getWithdrawRecord(recordNo)
|
return mCashHelper.updateRecordHasNotifyState(operationUUID)
|
||||||
}
|
|
||||||
|
|
||||||
fun updateRecordHasNotifyState(recordNo: String) {
|
|
||||||
return mCashHelper.updateRecordHasNotifyState(recordNo)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun saveNewWithdrawRecord(recordNo: RecordCash) {
|
fun saveNewWithdrawRecord(recordNo: RecordCash) {
|
||||||
|
|
@ -162,11 +158,11 @@ class CashRecordHelper() : BaseRecordHelper<RecordCash>() {
|
||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getWithdrawRecord(recordNo: String): RecordCash? {
|
fun getWithdrawRecord(operationUUID: String): RecordCash? {
|
||||||
try {
|
try {
|
||||||
mRecordLocker.lock()
|
mRecordLocker.lock()
|
||||||
mRecordList.forEachIndexed { index, record ->
|
mRecordList.forEachIndexed { index, record ->
|
||||||
if (record.payOutReplyNo == recordNo) {
|
if (record.uuid == operationUUID) {
|
||||||
return record
|
return record
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -176,8 +172,8 @@ class CashRecordHelper() : BaseRecordHelper<RecordCash>() {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateRecordHasNotifyState(recordNo: String) {
|
fun updateRecordHasNotifyState(operationUUID: String) {
|
||||||
val recordBean: RecordCash? = getWithdrawRecord(recordNo)
|
val recordBean: RecordCash? = getWithdrawRecord(operationUUID)
|
||||||
recordBean?.let {
|
recordBean?.let {
|
||||||
it.hasShowResultDialog = true
|
it.hasShowResultDialog = true
|
||||||
saveRecordList2Sp()
|
saveRecordList2Sp()
|
||||||
|
|
|
||||||
|
|
@ -210,8 +210,8 @@ class WithdrawManager private constructor() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateRecordHasNotifyState(recordNo: String) {
|
fun updateRecordHasNotifyState(operationUUID: String) {
|
||||||
RecordsManager.instance().updateRecordHasNotifyState(recordNo)
|
RecordsManager.instance().updateRecordHasNotifyState(operationUUID)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun saveNewWithdrawRecord(newRecord: RecordCash) {
|
fun saveNewWithdrawRecord(newRecord: RecordCash) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue