From 4577aab93908ce19222f19f253027f163c39a83b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 12 Oct 2024 13:58:33 +0800 Subject: [PATCH] 1 --- server/matchserver/player/player.go | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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, "") - } } })