上传升级代码

This commit is contained in:
liwei1dao 2023-09-28 16:21:27 +08:00
parent d25970f9d6
commit 0a803ac021

View File

@ -225,7 +225,7 @@ func (this *ModelUser) computeLevel(change *pb.UserResChangedPush) (lvchange boo
rewards = make([]*cfg.Gameatn, 0) rewards = make([]*cfg.Gameatn, 0)
for { for {
nextLvConf = this.module.configure.GetPlayerlvConf(curLv + 1) nextLvConf = this.module.configure.GetPlayerlvConf(curLv + 1)
if nextLvConf != nil { if nextLvConf == nil {
break break
} }
if curExp >= int64(nextLvConf.Exp) { if curExp >= int64(nextLvConf.Exp) {