From 43581dc9cc3b40688e0e2b7bc4b8ee675a31c661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 22 Feb 2021 14:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=8A=98=E6=89=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Hncore.Pass.Vpn/Controllers/ProductSchemeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);