perf: 配置文件调整
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user