保存提现init接口 itemId
This commit is contained in:
parent
2859edcc89
commit
decd41b82d
|
|
@ -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:提现失败
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue