mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-15 10:08:26 +00:00
优化代码
This commit is contained in:
@@ -179,10 +179,6 @@ public class SysLoginService
|
||||
*/
|
||||
public void recordLoginInfo(Long userId)
|
||||
{
|
||||
SysUser user = new SysUser();
|
||||
user.setUserId(userId);
|
||||
user.setLoginIp(ShiroUtils.getIp());
|
||||
user.setLoginDate(DateUtils.getNowDate());
|
||||
userService.updateUserInfo(user);
|
||||
userService.updateLoginInfo(userId, ShiroUtils.getIp(), DateUtils.getNowDate());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user