fix: 设置登录IP和登录时间

This commit is contained in:
TsMask
2023-10-21 17:43:17 +08:00
parent 7aca7b2fc1
commit ec76e34576
5 changed files with 28 additions and 4 deletions

View File

@@ -73,6 +73,7 @@ func (s *AccountController) Login(c *gin.Context) {
c.JSON(200, result.Err(nil))
return
} else {
s.accountService.UpdateLoginDateAndIP(&loginUser)
s.sysLogLoginService.CreateSysLogLogin(
loginBody.Username, commonConstants.STATUS_YES, "登录成功",
ipaddr, location, os, browser,