| | |
| | | /// <returns></returns> |
| | | private async Task<UserWalletTransaction> AddUserWalletTransactionWithdraw(UserWallet wallet, TaskInfo task, TaskInfoUser user) |
| | | { |
| | | wallet.Balance -= user.ActualSettlementAmount ?? 0; |
| | | await repUserWallet.UpdateNowAsync(wallet); |
| | | |
| | | var order = new UserWalletTransaction(); |
| | | order.WalletId = wallet.Id; |
| | | order.Type = EnumUserWalletTransactionType.Withdraw; |
| | |
| | | order.TransactionStatus = EnumWalletTransactionStatus.Dealing; |
| | | await SetCode(order); |
| | | await repUserWalletTransaction.InsertNowAsync(order); |
| | | |
| | | wallet.Balance -= user.ActualSettlementAmount ?? 0; |
| | | await repUserWallet.UpdateNowAsync(wallet); |
| | | |
| | | return order; |
| | | } |
| | | |