From 53b0bbdaa04b2be55338d0c89070220dafdf7004 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 20 Dec 2024 11:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/user_upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)