@using Hncore.Pass.Vpn.Response.Product @using Hncore.Infrastructure.Extension @using Microsoft.Extensions.Configuration @using Hncore.Infrastructure.Common @model PackageInfoResponse @inject IConfiguration m_Configuration @inject Hncore.Pass.Vpn.Service.ProductAccountService m_AccountService @{ ViewData["Title"] = "购买产品"; var t = this.Context.Request.GetInt("t"); var baseUrl = m_Configuration["BaseInfoUrl"]; Func P = (path) => $"{baseUrl}{path}"; var randomPwd = ValidateCodeHelper.MakeNumCode(3).ToLower(); var randomAccount = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower(); while (m_AccountService.Exist(m => m.Account == randomAccount)) { randomAccount = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower(); } var product_id = Model.Product.Id; if (product_id == 27||product_id == 6) { randomPwd = ValidateCodeHelper.MakeNumCode(6).ToLower(); } }

当前已选产品:

@Model.Product.Name

@Model.Package.Name

@Model.Package.Profile

¥ @Model.Package.Price
IP账号前缀:
IP账号密码:

剩余试用次数:@(Model.RestTimes)

@if (Model.RestTimes > 0 && Model.Package.Status == 1) { } @if (Model.Package.Status == 0) { 该产品暂不能测试 }

@section Scripts{ }