保存提现init接口 itemId

This commit is contained in:
renhaoting 2026-01-07 16:01:15 +08:00
parent 2859edcc89
commit decd41b82d
2 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,7 @@ open class RecordCash (var recordType: Int = 0,
var amountNum: Double = 0.0,) : BaseRecord() { var amountNum: Double = 0.0,) : BaseRecord() {
// 提现相关的 // 提现相关的
var payInitItemId: Int = 0
var payOutReplyId: String = "" var payOutReplyId: String = ""
var payOutReplyNo: String = "" var payOutReplyNo: String = ""
var withdrawState: Int = TRANSACTION_STATE_ONGOING // 提现状态 1:提现中,2:提现成功,3:提现失败 var withdrawState: Int = TRANSACTION_STATE_ONGOING // 提现状态 1:提现中,2:提现成功,3:提现失败

View File

@ -497,6 +497,12 @@ class WithdrawManager private constructor() {
val withDrawItem = it.items?.get(if (isSmallWithdraw) 0 else 1)!! val withDrawItem = it.items?.get(if (isSmallWithdraw) 0 else 1)!!
if (withDrawItem.status == INIT_OK) { if (withDrawItem.status == INIT_OK) {
withdrawRecord.withdrawInitUUID = it.uuid!! withdrawRecord.withdrawInitUUID = it.uuid!!
val shouldUserPayItemIndex = if (isSmallWithdraw) 0 else 1
if (shouldUserPayItemIndex < it.items!!.size) {
withdrawRecord.payInitItemId = it.items?.get(shouldUserPayItemIndex)?.id!!
}
// start payOut
requestPayout(withdrawRecord) requestPayout(withdrawRecord)
} else { } else {
failType = withDrawItem.status failType = withDrawItem.status
@ -523,7 +529,7 @@ class WithdrawManager private constructor() {
val accountType = "CPF" val accountType = "CPF"
account = bankAccount account = bankAccount
item_id = withdrawRecord.withdrawItemIndex item_id = withdrawRecord.payInitItemId
amount = withdrawRecord.amountNum.toString() amount = withdrawRecord.amountNum.toString()
additional_remark = "communnyboneycashmoneyrewardfastrealgame" additional_remark = "communnyboneycashmoneyrewardfastrealgame"
uuid = withdrawRecord.withdrawInitUUID uuid = withdrawRecord.withdrawInitUUID