perf: 配置文件调整

This commit is contained in:
TsMask
2025-03-17 19:21:52 +08:00
parent c20a3e5f04
commit a27e1d243c
9 changed files with 21 additions and 54 deletions

View File

@@ -166,7 +166,7 @@ func RunTime() time.Time {
// Get 获取配置信息
//
// Get("server.proxy")
// Get("redis.defaultDataSourceName")
func Get(key string) any {
return conf.Get(key)
}
@@ -187,7 +187,7 @@ func IsSystemUser(userId int64) bool {
return false
}
// 从配置中获取系统管理员ID列表
arr := Get("user.system").([]any)
arr := Get("systemUser").([]any)
for _, v := range arr {
if fmt.Sprint(v) == fmt.Sprint(userId) {
return true