Compare commits
	
		
			2 Commits
		
	
	
		
			caa1d0881f
			...
			2881cb0204
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						2881cb0204 | |
| 
							
							
								
								 | 
						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);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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分钟
 | 
				
			||||||
        long time = 30 * 60 * 1000;
 | 
					        int 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