上传用户

This commit is contained in:
liwei1dao 2023-09-28 16:16:17 +08:00
parent 35dcf8c7d8
commit 5184a2a4ff

View File

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