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