diff --git a/Host/Views/Product/buy.cshtml b/Host/Views/Product/buy.cshtml
index 638f94c..c0cf0e5 100644
--- a/Host/Views/Product/buy.cshtml
+++ b/Host/Views/Product/buy.cshtml
@@ -123,7 +123,7 @@
+
+
+ 1
+
可同时在线的设备数
diff --git a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs
index 31d9132..4735655 100644
--- a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs
+++ b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs
@@ -219,6 +219,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var userEntity = await m_UserService.GetById(userId);
+ //天卡0.1元
+ var ProductAccountCount = userEntity.ProductAccountCount;
+
var is_verify = userEntity.is_verify;
if (is_verify == 0)
@@ -230,6 +233,10 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var userPrice = await this.m_ProductUserPriceService.Query(true).FirstOrDefaultAsync(m => m.UserId == userId && m.PackageId == packageEntity.Id && m.Status == 1);
if (userPrice != null && userPrice.UserPrice > 0)
price = userPrice.UserPrice;
+
+ if (ProductAccountCount == 0 && packageEntity.DayCount == 1 && packageEntity.ProductId!=5 && request.ConnectCount == 1){
+ price = 0.1M;
+ }
var order = new ProductOrderEntity()
{
AccountCount = 1,
@@ -296,6 +303,11 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var ret = await CaclePaymentAmount(order, request.UseAccountAmount);
if (ret.Code != ResultCode.C_SUCCESS) return ret;
+
+ if (order.AccountPayAmount == 0.1M){
+ userEntity.ProductAccountCount = 1;
+ await m_UserService.Update(userEntity);
+ }
using (var tran = await m_DbContext.Database.BeginTransactionAsync())
{
try
@@ -361,6 +373,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
//账户余额支付
if (order.AccountPayAmount > 0)
{
+
var amountInfo = new UpdateAmountRequest()
{
Amount = order.AccountPayAmount.Value,