diff --git a/modules/user/model_user.go b/modules/user/model_user.go index a2254db48..8a52b8eee 100644 --- a/modules/user/model_user.go +++ b/modules/user/model_user.go @@ -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)