This commit is contained in:
gazebo
2019-08-19 10:43:36 +08:00
parent 95ad39fd49
commit 6b792f94cf

View File

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