- 不支持添加系统参数

This commit is contained in:
gazebo
2019-09-09 18:00:47 +08:00
parent 5f2415c8a5
commit 7dd0da9f97

View File

@@ -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)
}