From e0f2b29f3349d43e7f4222e079c54ba9cc4b6ee1 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 16 六月 2025 11:09:23 +0800
Subject: [PATCH] fix:支付回调及供应商回调并发问题修订

---
 LifePayment/LifePayment.HttpApi/LifePay/WxPayNotifyController.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/WxPayNotifyController.cs b/LifePayment/LifePayment.HttpApi/LifePay/WxPayNotifyController.cs
index 9e30708..8d1ae98 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/WxPayNotifyController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/WxPayNotifyController.cs
@@ -53,6 +53,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpPost]
+        [UnitOfWork(false)]
         public async Task<WxRechargeNotifyResult> WxRechargeNotify(WxRechargeNotifyInput input)
         {
             try
@@ -95,6 +96,7 @@
                             });
 
                             await CurrentUnitOfWork.SaveChangesAsync();
+                            _logger.LogInformation("浜嬪姟瀹屾垚");
                         }
                         else
                         {
@@ -113,6 +115,8 @@
             }
             catch (Exception ex)
             {
+                await CurrentUnitOfWork.RollbackAsync();
+                _logger.LogError($"寰俊鏀粯鍥炶皟寮傚父锛歿ex.Message}", ex);
                 return new WxRechargeNotifyResult
                 {
                     Code = "FAIL",

--
Gitblit v1.9.1