From e14381ae0ec7a149f99b175140d8ce7c2c7c6b05 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 09 九月 2025 15:45:12 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Core/Jobs/CompleteTaskSettlementT1Job.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FlexJobApi.Core/Jobs/CompleteTaskSettlementT1Job.cs b/FlexJobApi.Core/Jobs/CompleteTaskSettlementT1Job.cs index debb6b7..3d7d960 100644 --- a/FlexJobApi.Core/Jobs/CompleteTaskSettlementT1Job.cs +++ b/FlexJobApi.Core/Jobs/CompleteTaskSettlementT1Job.cs @@ -129,9 +129,6 @@ /// <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; @@ -147,6 +144,10 @@ order.TransactionStatus = EnumWalletTransactionStatus.Dealing; await SetCode(order); await repUserWalletTransaction.InsertNowAsync(order); + + wallet.Balance -= user.ActualSettlementAmount ?? 0; + await repUserWallet.UpdateNowAsync(wallet); + return order; } -- Gitblit v1.9.1