Compare commits
No commits in common. "2881cb0204d2d2b35c744a2b88cf79759fd9105f" and "caa1d0881fa24bc1a5dee0bd47a660f94cf0eef6" have entirely different histories.
2881cb0204
...
caa1d0881f
|
|
@ -46,7 +46,7 @@ public class SysPasswordService {
|
||||||
retryCount = 0;
|
retryCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (retryCount >= maxRetryCount) {
|
if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) {
|
||||||
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);
|
||||||
|
|
|
||||||
|
|
@ -660,7 +660,7 @@ public class DateTimeHelper {
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
System.out.println("当前时间:" + sdf.format(now));
|
System.out.println("当前时间:" + sdf.format(now));
|
||||||
//30分钟
|
//30分钟
|
||||||
int time = 30 * 60 * 1000;
|
long time = 30 * 60 * 1000;
|
||||||
//30分钟后的时间
|
//30分钟后的时间
|
||||||
Date afterDate = new Date(now.getTime() + time);
|
Date afterDate = new Date(now.getTime() + time);
|
||||||
System.out.println(sdf.format(afterDate));
|
System.out.println(sdf.format(afterDate));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue