实名认证弹窗
This commit is contained in:
@@ -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