diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index 9d2896e9..f5ae1d70 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -462,25 +462,9 @@ func (this *player) updateChoose(skillId int32, heroUniId string, return } { - this.name = rspObj.Info.UserInfo.Name - this.avatarUrl = rspObj.Info.UserInfo.HeadId - this.headFrame = rspObj.Info.UserInfo.HeadFrame - q5.DuckToSimple(rspObj.Info.UserInfo.AdmissionItemNum, &this.admissionItemNum) - q5.DuckToSimple(rspObj.Info.UserInfo.CircuitScore, &this.circuitScore) - q5.DuckToSimple(rspObj.Info.UserInfo.TotalLucky, &this.totalLucky) - { - this.hero.heroUniId = rspObj.Info.HeroInfo.HeroUniId - this.hero.heroId = q5.ToInt32(rspObj.Info.HeroInfo.HeroId) - this.hero.quality = q5.ToInt32(rspObj.Info.HeroInfo.Quality) - this.hero.specSkill = q5.ToInt32(rspObj.Info.HeroInfo.SpecSkill) - q5.DuckToSimple(rspObj.Info.HeroInfo.Wealth, &this.hero.wealth) - q5.DuckToSimple(rspObj.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) - q5.DuckToSimple(rspObj.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) - q5.DuckToSimple(rspObj.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) - q5.DuckToSimple(rspObj.Info.HeroInfo.SkinId, &this.hero.skinId) - } + this.parseUserInfo(&rspObj.Info.UserInfo) + this.parseHeroInfo(&rspObj.Info.HeroInfo) cb(0, "") - } } })