- 不支持添加系统参数
This commit is contained in:
@@ -220,6 +220,8 @@ func checkConfig(configType, key, value string) (err error) {
|
||||
}
|
||||
}
|
||||
case model.ConfigTypeRole:
|
||||
case model.ConfigTypeSys:
|
||||
err = fmt.Errorf("系统参数只支持修改,不支持自由添加")
|
||||
default:
|
||||
err = fmt.Errorf("当前只支持配置:%s, 传入的配置类型:%s", utils.Format4Output(model.ConfigTypeName, true), configType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user