From d9c5c66836a02076b78b1aae8a850a060e5fd8af Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 4 Jul 2023 17:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E7=BB=8F=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index a600d78ae..e3ba9615d 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -469,7 +469,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex maxLv = this.module.configure.GetHeroMaxLv(hero.Star) // 校验玩家等级 if _user := this.module.ModuleUser.GetUser(session.GetUserId()); _user != nil { - if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf == nil { + if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf != nil { if maxLv > expConf.HeroLv { maxLv = expConf.HeroLv // 英雄最大等级限制 }