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

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

No files matched your search

+1
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,