上传升级bug

This commit is contained in:
liwei1dao 2023-09-27 15:38:25 +08:00
parent 11cfa9b174
commit 8cac73974d

View File

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