feat: 多语言处理tkey

This commit is contained in:
TsMask committed 2023-11-21 14:42:37 +08:00
1 parent f490d9af0f
commit d5d3feb5fc
61 files changed
+1381 -757

No files matched your search

+5 -1
View File
@@ -356,7 +356,11 @@ func (r *RepoSysRole) CheckUniqueRole(sysRole model.SysRole) string {
return ""
}
if len(results) > 0 {
return fmt.Sprintf("%v", results[0]["str"])
v, ok := results[0]["str"].(string)
if ok {
return v
}
return ""
}
return ""
}