修改用户价格折扣
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user