邮箱-登录

This commit is contained in:
khalil
2025-03-14 11:28:22 +08:00
parent 6a2e90246b
commit 4d3b7c8f78
12 changed files with 192 additions and 18 deletions

View File

@@ -87,7 +87,7 @@ public class AccountBlockCheckService {
return checkBlocked(ip, BlockTypeEnum.BLOCK_IP);
}
public Long checkReturnEndTime(Long erbanNo, String phone, String deviceId, String ip){
public Long checkReturnEndTime(Long erbanNo, String phone, String email, String deviceId, String ip){
Long endTime = checkBlockedErbanNoReturnBlockEndTime(erbanNo);
if (null != endTime){
return endTime;
@@ -96,6 +96,10 @@ public class AccountBlockCheckService {
if (null != endTime){
return endTime;
}
endTime = checkBlockedEmailReturnBlockEndTime(email);
if (null != endTime){
return endTime;
}
endTime = checkBlockedDeviceReturnBlockEndTime(deviceId);
if (null != endTime){
return endTime;
@@ -143,6 +147,12 @@ public class AccountBlockCheckService {
return checkBlockedReturnBlockEndTime(phone, BlockTypeEnum.BLOCK_PHONE);
}
public Long checkBlockedEmailReturnBlockEndTime(String email){
if (!StringUtils.hasText(email)){
return null;
}
return checkBlockedReturnBlockEndTime(email, BlockTypeEnum.BLOCK_EMAIL);
}
/**
* 查询设备是否被封禁