From 0a803ac0212caab0226d21937ce6a893af51d25d Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 28 Sep 2023 16:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8D=87=E7=BA=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/model_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user/model_user.go b/modules/user/model_user.go index e4e44003f..7c9d9d93e 100644 --- a/modules/user/model_user.go +++ b/modules/user/model_user.go @@ -225,7 +225,7 @@ func (this *ModelUser) computeLevel(change *pb.UserResChangedPush) (lvchange boo rewards = make([]*cfg.Gameatn, 0) for { nextLvConf = this.module.configure.GetPlayerlvConf(curLv + 1) - if nextLvConf != nil { + if nextLvConf == nil { break } if curExp >= int64(nextLvConf.Exp) {