去掉无用代码

This commit is contained in:
renhaoting 2026-01-07 16:13:48 +08:00
parent 24ab07d4b2
commit b02f07a3cc
1 changed files with 2 additions and 29 deletions

View File

@ -93,13 +93,10 @@ class RecordsManager private constructor() {
return mCashHelper.updateRecordHasNotifyState(operationUUID) return mCashHelper.updateRecordHasNotifyState(operationUUID)
} }
fun saveNewWithdrawRecord(recordNo: RecordCash) { fun saveNewWithdrawRecord(withdrawRecord: RecordCash) {
return mCashHelper.saveNewWithdrawRecord(recordNo) return mCashHelper.saveNewWithdrawRecord(withdrawRecord)
} }
fun withdrawUpdateRecord(recordNo: String, newState: Int, failType: Int) : Int {
return mCashHelper.updateRecord(recordNo, newState, failType)
}
fun getWithdrawRecordList(): List<RecordCash> { fun getWithdrawRecordList(): List<RecordCash> {
return mCashHelper.getWithdrawRecordList() return mCashHelper.getWithdrawRecordList()
@ -190,30 +187,6 @@ class CashRecordHelper() : BaseRecordHelper<RecordCash>() {
} }
} }
fun updateRecord(recordNo: String, newState: Int, failType: Int): Int {
var withdrawItemIndex = -1
try {
mRecordLocker.lock()
mRecordList.forEachIndexed { index, record ->
if (record.payOutReplyNo == recordNo) {
if (record.withdrawState != newState) {
withdrawItemIndex = record.withdrawItemIndex
record.withdrawState = newState
record.withdrawFailType = failType
}
return@forEachIndexed
}
}
} finally {
mRecordLocker.unlock()
}
if (withdrawItemIndex >= 0) {
saveRecordList2Sp()
}
return withdrawItemIndex
}
fun getWithdrawRecordList(): List<RecordCash> { fun getWithdrawRecordList(): List<RecordCash> {
try { try {