fix: 系统配置数据值可能是多语言
This commit is contained in:
1 parent
04b9038eed
commit
af1f3c9d08
2 files changed
+2
-2
No files matched your search
@@ -214,7 +214,7 @@ func (s *SysConfigController) ConfigKey(c *gin.Context) {
|
||||
}
|
||||
key := s.sysConfigService.SelectConfigValueByKey(configKey)
|
||||
if key != "" {
|
||||
c.JSON(200, result.OkData(key))
|
||||
c.JSON(200, result.OkData(i18n.TKey(language, key)))
|
||||
return
|
||||
}
|
||||
c.JSON(200, result.Err(nil))
|
||||
|
||||
Reference in new issue
Block a user