int同类型比较

This commit is contained in:
csyue 2024-03-26 13:52:19 +08:00
parent caa1d0881f
commit d16be6ca46
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class SysPasswordService {
retryCount = 0; retryCount = 0;
} }
if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) { if (retryCount >= maxRetryCount) {
String errMsg = String.format("密码输入错误%s次帐户锁定%s分钟", maxRetryCount, lockTime); String errMsg = String.format("密码输入错误%s次帐户锁定%s分钟", maxRetryCount, lockTime);
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, errMsg); recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, errMsg);
throw new ServiceException(errMsg); throw new ServiceException(errMsg);