diff --git a/app/hdl/member_center/hdl_level__management.go b/app/hdl/member_center/hdl_level__management.go index 477fd72..db81d6d 100644 --- a/app/hdl/member_center/hdl_level__management.go +++ b/app/hdl/member_center/hdl_level__management.go @@ -336,8 +336,8 @@ func DeleteLevel(c *gin.Context) { e.OutErr(c, e.ERR_DB_ORM, err.Error()) return } - if !exist { - e.OutErr(c, e.ERR, errors.New("该等级下存在会员,无法删除,请移除对应等级下会员或将货源移动到其他等级").Error()) + if exist { + e.OutErr(c, e.ERR, errors.New("该等级下存在会员,无法删除,请移除对应等级下会员或将会员移动到其他等级").Error()) return }