From 394393e91e51dea4ae5b689cc471fa62f2913da3 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 31 三月 2025 13:54:18 +0800
Subject: [PATCH] 提交

---
 LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
index fc61849..8780794 100644
--- a/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
+++ b/LifePayment/LifePayment.Application/LifePay/LifePayOrderService.cs
@@ -324,7 +324,11 @@
                         FinishTime = item.FinishTime.Value,
                         ChannelId = item.ChannelId,
                     };
-                    await _lifePayChannlesRakeRepository.InsertAsync(lifePayChannlesRake);
+                    var repeat = _lifePayChannlesRakeRepository.Where(x => x.OrderNo == item.OrderNo).FirstOrDefaultAsync();
+                    if (repeat != null)
+                    {
+                        await _lifePayChannlesRakeRepository.InsertAsync(lifePayChannlesRake);
+                    }
                 }
             }
         }

--
Gitblit v1.9.1