diff --git a/Host/Views/Product/Index.cshtml b/Host/Views/Product/Index.cshtml index 297c205..abcf176 100644 --- a/Host/Views/Product/Index.cshtml +++ b/Host/Views/Product/Index.cshtml @@ -361,16 +361,18 @@ @*

@item.Product.Name

*@
-
-

免费

-

@restStatus

-

@restTimes

-
-

测试卡

-

使用期限:1小时

+ @if(item.Product.Id != 5){ +
+

免费

+

@restStatus

+

@restTimes

+
+

测试卡

+

使用期限:1小时

+
+
- -
+ } @foreach (var package in item.Packages.Where(m => m.IsTest == 0 && m.Status == 1).OrderBy(m => m.TenantId)) { diff --git a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs index 4b204f4..4da6f4a 100644 --- a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs +++ b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs @@ -250,10 +250,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, { order.OrderAmount = price * request.ConnectCount; order.Accounts = request.Account; - var isExit = await m_ProductAccountService.CheckMonthAccountExist(request.Account); - if(isExit){ - return new ApiResult(ResultCode.C_INVALID_ERROR, request.Account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。"); - } + + //双月卡活动 + // var isExit = await m_ProductAccountService.CheckMonthAccountExist(request.Account); + // if(isExit){ + // return new ApiResult(ResultCode.C_INVALID_ERROR, request.Account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。"); + // } } if (request.OrderType == OrderType.News) @@ -271,13 +273,14 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, order.OrderAmount = price * request.ConnectCount * count; order.Accounts = request.Account; } - foreach (var account in order.Accounts.Split(",").ToList()) - { - var isExit = await m_ProductAccountService.CheckMonthAccountExist(account); - if(isExit){ - return new ApiResult(ResultCode.C_INVALID_ERROR, account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。"); - } - } + //双月卡活动 + // foreach (var account in order.Accounts.Split(",").ToList()) + // { + // var isExit = await m_ProductAccountService.CheckMonthAccountExist(account); + // if(isExit){ + // return new ApiResult(ResultCode.C_INVALID_ERROR, account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。"); + // } + // } await CheckRequest(order);