实名认证弹窗
This commit is contained in:
@@ -351,10 +351,6 @@
|
|||||||
<td>身份证号:</td>
|
<td>身份证号:</td>
|
||||||
<td><input type="text" id="real-name-code" class="inputBox" placeholder="请输入身份证号码"/></td>
|
<td><input type="text" id="real-name-code" class="inputBox" placeholder="请输入身份证号码"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>手机号码:</td>
|
|
||||||
<td><input type="text" id="real-name-phone" class="inputBox" placeholder="请输入手机号码" ></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="" style="text-align:center;">
|
<div class="" style="text-align:center;">
|
||||||
@@ -402,6 +398,11 @@
|
|||||||
|
|
||||||
<script type="text/javascript" src="https://static.runoob.com/assets/qrcode/qrcode.min.js"></script>
|
<script type="text/javascript" src="https://static.runoob.com/assets/qrcode/qrcode.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
$(function () {
|
||||||
|
if (@Model.UserModel.is_verify == 0) {
|
||||||
|
$('#real-name').show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
var t1 = null;
|
var t1 = null;
|
||||||
/** 表单序列化成json字符串的方法 */
|
/** 表单序列化成json字符串的方法 */
|
||||||
@@ -532,17 +533,12 @@ var t1 = null;
|
|||||||
function realname(){
|
function realname(){
|
||||||
|
|
||||||
let id_code = $('#real-name-code').val(),
|
let id_code = $('#real-name-code').val(),
|
||||||
name = $('#real-name-name').val(),
|
name = $('#real-name-name').val();
|
||||||
phone = $('#real-name-phone').val();
|
|
||||||
|
|
||||||
if(id_code.length <= 0){
|
if(id_code.length <= 0){
|
||||||
alert("抱歉!请重新输入身份证号!");
|
alert("抱歉!请重新输入身份证号!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(phone.length != 11){
|
|
||||||
alert("抱歉!请重新输入手机号!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(name.length <= 0){
|
if(name.length <= 0){
|
||||||
alert("抱歉!请重新输入姓名!");
|
alert("抱歉!请重新输入姓名!");
|
||||||
return;
|
return;
|
||||||
@@ -558,8 +554,7 @@ var t1 = null;
|
|||||||
let data = {
|
let data = {
|
||||||
cookie:document.cookie,
|
cookie:document.cookie,
|
||||||
id_code: id_code,
|
id_code: id_code,
|
||||||
name: name,
|
name: name
|
||||||
phone: phone
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,10 @@
|
|||||||
$(".pwdList").hide();
|
$(".pwdList").hide();
|
||||||
})
|
})
|
||||||
if(edit) $(".editList").show();
|
if(edit) $(".editList").show();
|
||||||
|
if (@Model.UserModel.is_verify == 0) {
|
||||||
|
$(".mask").show();
|
||||||
|
$('.real-name').show();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
@@ -142,7 +146,7 @@
|
|||||||
top: 20%;
|
top: 20%;
|
||||||
margin-left: -200px;
|
margin-left: -200px;
|
||||||
margin-top: -160px;
|
margin-top: -160px;
|
||||||
z-index: 3;
|
z-index: 10000;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0px 6px 8px 6px #ccc;
|
box-shadow: 0px 6px 8px 6px #ccc;
|
||||||
@@ -176,6 +180,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<div class="mask"></div>
|
||||||
<div class="editList">
|
<div class="editList">
|
||||||
<form asp-action="UpdateInfo" asp-controller="User" method="post">
|
<form asp-action="UpdateInfo" asp-controller="User" method="post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -284,6 +289,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="real-name">
|
<div class="real-name">
|
||||||
<form id="id-cert">
|
<form id="id-cert">
|
||||||
|
<h1 style="color: #007dfd;">尊敬的用户,您还未进行实名认证!</h1>
|
||||||
<p>《中华人民共和国网络安全法》第二十四条规定:<br>
|
<p>《中华人民共和国网络安全法》第二十四条规定:<br>
|
||||||
网络运营者为用户办理网络接入、域名注册服务,办理固定电话、移动电话等入网手续,或者为用户提供信息发布、即时通讯等服务,在与用户签订协议或者确认提供服务时,应当要求用户提供真实身份信息。用户不提供真实身份信息的,网络运营者不得为其提供相关服务。</p>
|
网络运营者为用户办理网络接入、域名注册服务,办理固定电话、移动电话等入网手续,或者为用户提供信息发布、即时通讯等服务,在与用户签订协议或者确认提供服务时,应当要求用户提供真实身份信息。用户不提供真实身份信息的,网络运营者不得为其提供相关服务。</p>
|
||||||
<p>1、为了你的帐号安全请勿使用他人手机号或身份信息</p>
|
<p>1、为了你的帐号安全请勿使用他人手机号或身份信息</p>
|
||||||
@@ -296,9 +302,6 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>身份证号:</label>
|
<label>身份证号:</label>
|
||||||
<input type="text" id="real-name-code" class="form-control" placeholder="请输入身份证号码" >
|
<input type="text" id="real-name-code" class="form-control" placeholder="请输入身份证号码" >
|
||||||
</div><div class="form-group">
|
|
||||||
<label>手机号码:</label>
|
|
||||||
<input type="text" id="real-name-phone" class="form-control" placeholder="请输入手机号码" >
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
@@ -312,17 +315,13 @@
|
|||||||
|
|
||||||
function realname(){
|
function realname(){
|
||||||
let id_code = $('#real-name-code').val(),
|
let id_code = $('#real-name-code').val(),
|
||||||
name = $('#real-name-name').val(),
|
name = $('#real-name-name').val();
|
||||||
phone = $('#real-name-phone').val();
|
@* phone = $('#real-name-phone').val(); *@
|
||||||
|
|
||||||
if(id_code.length <= 0){
|
if(id_code.length <= 0){
|
||||||
alert("抱歉!请重新输入身份证号!");
|
alert("抱歉!请重新输入身份证号!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(phone.length != 11){
|
|
||||||
alert("抱歉!请重新输入手机号!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(name.length <= 0){
|
if(name.length <= 0){
|
||||||
alert("抱歉!请重新输入姓名!");
|
alert("抱歉!请重新输入姓名!");
|
||||||
return;
|
return;
|
||||||
@@ -339,7 +338,6 @@
|
|||||||
cookie:document.cookie,
|
cookie:document.cookie,
|
||||||
id_code: id_code,
|
id_code: id_code,
|
||||||
name: name,
|
name: name,
|
||||||
phone: phone
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -360,7 +358,7 @@
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
if (res.Code == 30000) {
|
if (res.Code == 30000) {
|
||||||
alert('该身份已经进行认证,无法再次进行认证!');
|
alert('该身份已经进行认证,无法再次进行认证,联系在线客服行处理!');
|
||||||
window.location.href='/User/Index';
|
window.location.href='/User/Index';
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ namespace Hncore.Pass.BaseInfo.Service
|
|||||||
{
|
{
|
||||||
BusinessException.Throw("密码错误");
|
BusinessException.Throw("密码错误");
|
||||||
}
|
}
|
||||||
manage.TenantId = 1;
|
|
||||||
_dbContext.Set<Manager>().Update(manage);
|
|
||||||
|
|
||||||
return await LoginInternal(manage);
|
return await LoginInternal(manage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ namespace Hncore.Pass.BaseInfo.Service
|
|||||||
|
|
||||||
manangeDic[minKv.Key] = manangeDic[minKv.Key] + 1;
|
manangeDic[minKv.Key] = manangeDic[minKv.Key] + 1;
|
||||||
|
|
||||||
if (manger_info.RoleId == 100 && manger_info.TenantId == 1 && DateTime.Now.Hour<23) {
|
if (manger_info.RoleId == 100 && manger_info.TenantId == 1 && DateTime.Now.Hour<23 && DateTime.Now.Hour>8) {
|
||||||
AliSmsService.Send("SMS_462001365", new { name = manger_info.RealName,phone=userEntity.Phone }, "聚IP", manger_info.Phone);
|
AliSmsService.Send("SMS_462001365", new { name = manger_info.RealName,phone=userEntity.Phone }, "聚IP", manger_info.Phone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,11 @@ namespace Hncore.Pass.Vpn.Service
|
|||||||
{
|
{
|
||||||
return await this.Query(true).FirstOrDefaultAsync(m => m.Account == accout);
|
return await this.Query(true).FirstOrDefaultAsync(m => m.Account == accout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<ProductAccountEntity> GetAccountNotRefundInfo(string accout)
|
||||||
|
{
|
||||||
|
return await this.Query(true).FirstOrDefaultAsync(m => m.Account == accout && m.DeleteTag == 0);
|
||||||
|
}
|
||||||
|
|
||||||
public async Task<ProductAccountEntity> GetAccountInfo(int packageId,string accout)
|
public async Task<ProductAccountEntity> GetAccountInfo(int packageId,string accout)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -544,7 +544,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
{
|
{
|
||||||
BusinessException.Throw($"账号【{account}】不存在");
|
BusinessException.Throw($"账号【{account}】不存在");
|
||||||
}
|
}
|
||||||
var accountInfo = await m_ProductAccountService.GetAccountInfo(account);
|
var accountInfo = await m_ProductAccountService.GetAccountNotRefundInfo(account);
|
||||||
if (accountInfo.Status == AccountStatus.Refund)
|
if (accountInfo.Status == AccountStatus.Refund)
|
||||||
{
|
{
|
||||||
BusinessException.Throw($"已退款的账号禁止续费,请重新开号");
|
BusinessException.Throw($"已退款的账号禁止续费,请重新开号");
|
||||||
@@ -942,6 +942,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
accountEntity.Raw = ret.Data.ToString();
|
accountEntity.Raw = ret.Data.ToString();
|
||||||
await m_ProductAccountService.Update(accountEntity);
|
await m_ProductAccountService.Update(accountEntity);
|
||||||
}
|
}
|
||||||
|
if (accountEntity.PackageId == 13) {
|
||||||
|
await Task.Delay(30);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (accountError.Has())
|
if (accountError.Has())
|
||||||
{
|
{
|
||||||
@@ -1252,7 +1255,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
await m_AgentUserService.Update(agentEntity);
|
await m_AgentUserService.Update(agentEntity);
|
||||||
}
|
}
|
||||||
var managerEntity = await m_ManageService.GetById(userEntity.ManagerId.ToInt());
|
var managerEntity = await m_ManageService.GetById(userEntity.ManagerId.ToInt());
|
||||||
if (managerEntity.TenantId == 1 && managerEntity.RoleId == 100 && DateTime.Now.Hour<23) {
|
if (managerEntity.TenantId == 1 && managerEntity.RoleId == 100 && DateTime.Now.Hour<23 && DateTime.Now.Hour>8) {
|
||||||
AliSmsService.Send("SMS_462300235", new { name = userEntity.ManagerName,phone=userEntity.Phone }, "聚IP", managerEntity.Phone);
|
AliSmsService.Send("SMS_462300235", new { name = userEntity.ManagerName,phone=userEntity.Phone }, "聚IP", managerEntity.Phone);
|
||||||
}
|
}
|
||||||
return new ApiResult(1);
|
return new ApiResult(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user