From 8021ca9eff093f284aa5ea7fbcd4b33255c476fc Mon Sep 17 00:00:00 2001 From: chenchun Date: Fri, 19 Dec 2025 12:58:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Application/Services/PayService.cs | 1 + .../Managers/PremiumPackageManager.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 ed51b356..95af7b25 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 @@ -130,6 +130,7 @@ public class PayService : ApplicationService, IPayService tokenAmount, packageName, order.TotalAmount, + "自助充值", expireMonths: null // 尊享包不设置过期时间,或者可以根据需求设置 ); diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/PremiumPackageManager.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/PremiumPackageManager.cs index d1f8d392..88ac4069 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/PremiumPackageManager.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/PremiumPackageManager.cs @@ -30,6 +30,7 @@ public class PremiumPackageManager : DomainService /// 用户ID /// /// 支付金额 + /// /// 过期月数,0或null表示永久 /// /// 是否创建订单,如果只购买尊享包,才需要单独创建订单,如果和会员组合一起购买,只需要创建会员套餐订单即可 @@ -39,6 +40,7 @@ public class PremiumPackageManager : DomainService long tokenAmount, string packageName, decimal totalAmount, + string remark, int? expireMonths = null, bool isCreateRechargeRecord = true) { @@ -64,7 +66,7 @@ public class PremiumPackageManager : DomainService RechargeAmount = totalAmount, Content = packageName, ExpireDateTime = premiumPackage.ExpireDateTime, - Remark = "自助充值", + Remark = remark, ContactInfo = null, RechargeType = RechargeTypeEnum.PremiumPackage };