From 791b570da68ecf30a4bfa745c159e36c2d3c91f7 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期二, 25 三月 2025 10:32:05 +0800
Subject: [PATCH] fix:驳回状态更新

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

diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
index 25934f7..7987669 100644
--- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
+++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -834,7 +834,7 @@
         var rate = await GetRate();
         CheckExtensions.IfTrueThrowUserFriendlyException(rate.IsNullOrEmpty(), "鏈厤缃姌鎵�");
 
-
+        //var rate = await GetLifePayRate();
 
         var amount = CalculateAmount(input.ProductData.ParValue, rate.FirstOrDefault(x => x.RateType == LifePayRateTypeEnum.榛樿璇濊垂鎶樻墸).Rate);
 
@@ -1582,7 +1582,7 @@
 
             order.RefundCheckRemark = input.RefundCheckRemark;
             order.RefundCheckUserId = CurrentUser.Id;
-            order.LifePayRefundStatus = LifePayRefundStatusEnum.鏃犻渶閫�娆�;
+            order.LifePayRefundStatus = LifePayRefundStatusEnum.閫�娆鹃┏鍥�;
 
             await _lifePayOrderRepository.UpdateAsync(order);
 
@@ -2111,12 +2111,11 @@
         }
         else
         {
-            //var channel = await _lifePayChannlesRep.Where(x => x.ChannlesNum == channelId);
+            var channel = await _lifePayChannlesRep.Where(x => x.ChannlesNum == channelId).FirstOrDefaultAsync();
 
-            return 0;
+            CheckExtensions.IfTrueThrowUserFriendlyException(channel == null, "鏈壘鍒板搴旀笭閬�");
+            return channel.ChannlesRate;
         }
-
-       
     }
 
     #endregion

--
Gitblit v1.9.1