From 80566193cadd47fe77187465e4913d06a6dc978f Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 24 三月 2025 20:33:23 +0800
Subject: [PATCH] fix:1分钱支付回退

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

diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
index 060bbdb..fcf0ccf 100644
--- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
+++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -1759,10 +1759,10 @@
     private (decimal PayAmont, decimal DiscountAmount, decimal RechargeAmount) CalculateAmount(decimal amount, decimal rate)
     {
         /// 姝e父鏀粯
-        //var payAmount = decimal.Round(amount * rate / 100, 2, MidpointRounding.AwayFromZero);
+        var payAmount = decimal.Round(amount * rate / 100, 2, MidpointRounding.AwayFromZero);
 
         /// 1鍒嗛挶鏀粯
-        decimal payAmount = 0.01m;
+        //decimal payAmount = 0.01m;
 
         CheckExtensions.IfTrueThrowUserFriendlyException(payAmount < 0.01m, "鏀粯閲戦閿欒");
 
@@ -2092,7 +2092,7 @@
 
         return new OrderPriceReturn()
         {
-            PlatformPrice = platformPrice.HasValue? platformPrice.Value:0,
+            PlatformPrice = platformPrice.HasValue? platformPrice.Value :0,
             PremiumPrice = premiumPrice.HasValue ? premiumPrice.Value : 0,
             ChannlesRakePrice = channlesRakePrice.HasValue? channlesRakePrice.Value:0,
             Profit = profit.HasValue ? profit.Value : 0

--
Gitblit v1.9.1