From 7dd0da9f9770b30e6e67ac1ec43de466740c9de0 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 9 Sep 2019 18:00:47 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=B8=8D=E6=94=AF=E6=8C=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/cms.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index c9f7d5919..190ab8950 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -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) }