diff --git a/Services/Hncore.Pass.Vpn/Controllers/ProductSchemeController.cs b/Services/Hncore.Pass.Vpn/Controllers/ProductSchemeController.cs index bb403db..62be0c5 100644 --- a/Services/Hncore.Pass.Vpn/Controllers/ProductSchemeController.cs +++ b/Services/Hncore.Pass.Vpn/Controllers/ProductSchemeController.cs @@ -157,7 +157,7 @@ namespace Hncore.Pass.Vpn.Controllers if (userPrice != null && userPrice.Id > 0) { userPrice.Status = 1; - userPrice.UserPrice = item.BuyPriceDiscount / 100m * package.Price; + userPrice.UserPrice = item.BuyPriceDiscount / 100m * package.LinePrice; userPrice.RefundDayPrice = item.RefundDayPriceDiscount / 100m * product.RefundDayPrice; userPrice.Remark = schemaEntity.Name; userPrice.UserPrice = Math.Max(userPrice.UserPrice, package.MinPrice); @@ -174,7 +174,7 @@ namespace Hncore.Pass.Vpn.Controllers Remark = schemaEntity.Name, TenantId = 0, UserId = request.UserId, - UserPrice = item.BuyPriceDiscount / 100m * package.Price, + UserPrice = item.BuyPriceDiscount / 100m * package.LinePrice, RefundDayPrice = item.RefundDayPriceDiscount / 100m * product.RefundDayPrice, }; userPrice.UserPrice = Math.Max(userPrice.UserPrice, package.MinPrice);