- up
This commit is contained in:
@@ -266,7 +266,9 @@ func DeleteConfig(ctx *jxcontext.Context, key, configType string) (err error) {
|
|||||||
if err = err2; err == nil && len(userIDs) > 0 {
|
if err = err2; err == nil && len(userIDs) > 0 {
|
||||||
userList, totalCount, err2 := dao.GetUsers(dao.GetDB(), 0, "", userIDs, "", "", 0, -1)
|
userList, totalCount, err2 := dao.GetUsers(dao.GetDB(), 0, "", userIDs, "", "", 0, -1)
|
||||||
if err = err2; err == nil && totalCount > 0 {
|
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)
|
errList.AddErr(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user