diff --git a/modules/exclusive/api_addexp.go b/modules/exclusive/api_addexp.go index 556f719fd..126791aee 100644 --- a/modules/exclusive/api_addexp.go +++ b/modules/exclusive/api_addexp.go @@ -71,6 +71,10 @@ func (this *apiComp) AddExp(session comm.IUserSession, req *pb.ExclusiveAddExpRe } return } + info.Property = make(map[int32]int32) + for _, v := range lvconf.Attribute { + info.Property[v.A] = v.N + } if info.Lv >= ranconf.Lvmax { //当前阶段最大等级 info.Exp = lvconf.Needexp break @@ -78,10 +82,6 @@ func (this *apiComp) AddExp(session comm.IUserSession, req *pb.ExclusiveAddExpRe if lvconf.Needexp <= info.Exp { info.Lv++ info.Exp -= lvconf.Needexp - info.Property = make(map[int32]int32) - for _, v := range lvconf.Attribute { - info.Property[v.A] = v.N - } } else { break }