fix: 登录日志msg存储使用变量值
This commit is contained in:
@@ -50,6 +50,7 @@ func (s *SysLogLoginController) List(c *gin.Context) {
|
||||
(*arr)[i].LoginLocation = i18n.TKey(language, (*arr)[i].LoginLocation)
|
||||
(*arr)[i].OS = i18n.TKey(language, (*arr)[i].OS)
|
||||
(*arr)[i].Browser = i18n.TKey(language, (*arr)[i].Browser)
|
||||
(*arr)[i].Msg = i18n.TKey(language, (*arr)[i].Msg)
|
||||
}
|
||||
}
|
||||
converI18n(language, &rows)
|
||||
@@ -135,6 +136,7 @@ func (s *SysLogLoginController) Export(c *gin.Context) {
|
||||
(*arr)[i].LoginLocation = i18n.TKey(language, (*arr)[i].LoginLocation)
|
||||
(*arr)[i].OS = i18n.TKey(language, (*arr)[i].OS)
|
||||
(*arr)[i].Browser = i18n.TKey(language, (*arr)[i].Browser)
|
||||
(*arr)[i].Msg = i18n.TKey(language, (*arr)[i].Msg)
|
||||
}
|
||||
}
|
||||
converI18n(language, &rows)
|
||||
|
||||
Reference in New Issue
Block a user