perf: 优化封装
This commit is contained in:
@@ -130,6 +130,7 @@ public class PayService : ApplicationService, IPayService
|
||||
tokenAmount,
|
||||
packageName,
|
||||
order.TotalAmount,
|
||||
"自助充值",
|
||||
expireMonths: null // 尊享包不设置过期时间,或者可以根据需求设置
|
||||
);
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ public class PremiumPackageManager : DomainService
|
||||
/// <param name="userId">用户ID</param>
|
||||
/// <param name="packageName"></param>
|
||||
/// <param name="totalAmount">支付金额</param>
|
||||
/// <param name="remark"></param>
|
||||
/// <param name="expireMonths">过期月数,0或null表示永久</param>
|
||||
/// <param name="tokenAmount"></param>
|
||||
/// <param name="isCreateRechargeRecord">是否创建订单,如果只购买尊享包,才需要单独创建订单,如果和会员组合一起购买,只需要创建会员套餐订单即可</param>
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user