Commit e3bedb8b authored by wangsong's avatar wangsong

set log hour

parent 4b3afaf3
......@@ -184,6 +184,9 @@ public class AuthController {
authLog.setYear(year);
authLog.setYearMonth(yearMonth);
authLog.setYearMonthDay(yearMonthDay);
Calendar calendar = Calendar.getInstance();
calendar.setTime(now);
authLog.setHour(calendar.get(Calendar.HOUR));
authLogService.save(authLog);
response.sendRedirect(loginUrl);
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment