diff --git a/rule/user_upgrade.go b/rule/user_upgrade.go index bd2a38a..871d1e8 100644 --- a/rule/user_upgrade.go +++ b/rule/user_upgrade.go @@ -27,7 +27,7 @@ func UserUpgradeInsert(eg *xorm.Engine, uid int) error { isNext = 1 } } - if level == user.Level { + if level <= user.Level { return errors.New("等级相同") } task, err := UserUpgradeTask(eg, int(user.Id), level)