int同类型比较
This commit is contained in:
parent
caa1d0881f
commit
d16be6ca46
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue