From 6b792f94cf01986db10aab51467a5cf350029e53 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 19 Aug 2019 10:43:36 +0800 Subject: [PATCH] - up --- business/jxstore/cms/cms.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index 38b14b286..8514c405b 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -266,7 +266,9 @@ func DeleteConfig(ctx *jxcontext.Context, key, configType string) (err error) { if err = err2; err == nil && len(userIDs) > 0 { userList, totalCount, err2 := dao.GetUsers(dao.GetDB(), 0, "", userIDs, "", "", 0, -1) if err = err2; err == nil && totalCount > 0 { - err = fmt.Errorf("还有人员在使用角色:%s,人员信息:%s", key, utils.MustMarshal(utils.Struct2Map(userList, "compact"))) + // todo + // err = fmt.Errorf("还有人员在使用角色:%s,人员信息:%s", key, utils.MustMarshal(utils.Struct2Map(userList, "compact"))) + err = fmt.Errorf("还有人员在使用角色:%s,人员信息:%s", key, utils.Format4Output(userList, false)) } } errList.AddErr(err)