diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index ac50ae06..eed5799e 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -68,6 +68,8 @@ func (this *player) init(req *pendingLoginRequest, rsp *common.LoginRsp){ this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill) q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth) q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) + q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) + q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) } } @@ -89,6 +91,8 @@ func (this *player) againInit(req *pendingLoginRequest, rsp *common.LoginRsp){ this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill) q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth) q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) + q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) + q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) } } @@ -426,6 +430,8 @@ func (this *player) CMRefreshUser(hdr *f5.MsgHdr, msg *cs.CMRefreshUser) { 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) } if this.GetTeam() != nil { this.GetTeam().SendUpdateNotify()