From 9bcdaf6bd8f4579469a61720fc8dc314ad0f31e4 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sun, 12 Oct 2025 20:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=B0=8A=E4=BA=AB?= =?UTF-8?q?=E5=8C=85=E6=8A=98=E6=89=A3=E8=A7=84=E5=88=99=E4=B8=BA=E6=AF=8F?= =?UTF-8?q?10=E5=85=83=E5=87=8F2.5=E5=85=83=EF=BC=8C=E6=9C=80=E5=A4=9A?= =?UTF-8?q?=E5=87=8F50=E5=85=83=EF=BC=8C=E5=B9=B6=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/PayService.cs | 4 ++-- .../Enums/GoodsTypeEnum.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs index 872a1959..d234b6b3 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs @@ -218,11 +218,11 @@ public class PayService : ApplicationService, IPayService if (discountAmount > 0) { - discountDescription = $"已优惠 ¥{discountAmount:F2}(累计充值每10元减1元,最多减20元)"; + discountDescription = $"已优惠 ¥{discountAmount:F2}(累计充值每10元减2.5元,最多减50元)"; } else { - discountDescription = "累计充值每10元可减1元,最多减20元"; + discountDescription = "累计充值每10元可减2.5元,最多减50元"; } } diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Enums/GoodsTypeEnum.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Enums/GoodsTypeEnum.cs index 0f1016ff..2f3ff637 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Enums/GoodsTypeEnum.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Enums/GoodsTypeEnum.cs @@ -227,7 +227,7 @@ public static class GoodsTypeEnumExtensions /// /// 计算折扣金额(仅用于尊享包) - /// 规则:每累加充值10元,减少1元,最多减少20元 + /// 规则:每累加充值10元,减少2.5元,最多减少50元 /// /// 商品类型 /// 用户累加充值金额 @@ -240,11 +240,11 @@ public static class GoodsTypeEnumExtensions return 0m; } - // 每10元减1元 - var discountAmount = Math.Floor(totalRechargeAmount / 10m); + // 每10元减2.5元 + var discountAmount = Math.Floor(totalRechargeAmount / 2.5m); - // 最多减少20元 - return Math.Min(discountAmount, 20m); + // 最多减少50元 + return Math.Min(discountAmount, 50m); } ///