- QueryConfigs在无结果且key不为空时才返回错误
This commit is contained in:
@@ -249,6 +249,9 @@ func DeleteConfig(ctx *jxcontext.Context, key, configType string) (err error) {
|
||||
}
|
||||
|
||||
func UpdateConfig(ctx *jxcontext.Context, key, configType, value string) (err error) {
|
||||
if key == "" {
|
||||
return fmt.Errorf("修改配置必须给定key")
|
||||
}
|
||||
if err = checkConfig(configType, value); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user