测试卡实名
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<ul class="nav nav-tabs cpName" role="tablist">
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
@if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 5){
|
||||
@if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 14||item.Product.Id == 5){
|
||||
|
||||
<li role="presentation" class="@(item.Product.Id==defaultProduct.Id?"active":"")">
|
||||
<a href="#@item.Product.Id" role="tab" data-toggle="tab" style="font-size: 25px;">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">活动</span></a>
|
||||
|
||||
@@ -18,6 +18,31 @@
|
||||
}
|
||||
}
|
||||
<vc:redirecct-login></vc:redirecct-login>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,会员需要实名认证方可使用该产品,点击确定前往 用户主页、个人信息 实名认证。');
|
||||
window.location.href="/User/IndexInfo";
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div class="cpTop">
|
||||
<p class="choose">当前已选产品:</p>
|
||||
<div class="kArea">
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
<div class="nav" style="width:175px;">
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
@if( item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 5){
|
||||
@if( item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 14||item.Product.Id == 5){
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">活动</span></div>
|
||||
}
|
||||
@* else if(item.Product.Id == 4 || item.Product.Id == 13) {
|
||||
|
||||
@@ -13,7 +13,29 @@
|
||||
randomAccount = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
|
||||
}
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,会员需要实名认证方可使用该产品,点击确定进入实名认证。');
|
||||
window.location.href="/User/Index";
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.tip {
|
||||
color: red;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
public class AgentClient7Service : AgentClientBaseService
|
||||
{
|
||||
string apiId = "135";
|
||||
string apiKey = "Fz1JRXVBCuwja2G2SoY2EUdgXtCGSBXS";
|
||||
string apiKey = "7dayCFfY6zcwJa6QHtHbGQBRckjJbrbS";
|
||||
string LoginIndexUrl { get; set; } = "login";
|
||||
string LoginUrl { get; set; } = "login";
|
||||
string LoginCodeUrl { get; set; } = "";
|
||||
@@ -188,6 +188,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
{"test",packageKey=="test"?"1":"0" },
|
||||
{"type",packageKey=="test"?"d":packageKey },
|
||||
{"paynum",payCount.ToString() },
|
||||
{"mobile","17719092232" },
|
||||
};
|
||||
var title = GetOpTitle("NewAccount", account);
|
||||
LogHelper.Info(title, map.ToJson());
|
||||
|
||||
Reference in New Issue
Block a user