| | |
| | | /// <returns></returns> |
| | | private async Task UpdateUserWalletTransactionWithdraw(UserWallet wallet, UserWalletTransaction withdraw, EnterpriseWalletTransaction transfer) |
| | | { |
| | | withdraw.ErrorCode = transfer.ErrorCode; |
| | | withdraw.FailReason = transfer.FailReason; |
| | | withdraw.EnterpriseWalletTransactionId = transfer.Id; |
| | | withdraw.TransactionStatus = transfer.TransactionStatus; |
| | | withdraw.TransDate = transfer.TransDate; |
| | |
| | | AccountBookId = wallet.AccountBookId, |
| | | SceneCode = "SATF_FUND_BOOK", |
| | | MerchantUserId = wallet.Code, |
| | | ExtInfo = new |
| | | { |
| | | agreement_no = wallet.AgreementNo |
| | | }.ToJson() |
| | | }); |
| | | if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg); |
| | | wallet.Balance = response.AvailableAmount.ToDecimal() ?? 0; |