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 };