From 17c04e0697be39fd2a55c8ec89903095d055d182 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 12 Oct 2024 14:00:31 +0800 Subject: [PATCH] 1 --- server/matchserver/player/player.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index f5ae1d70..53ac3c7c 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -44,6 +44,9 @@ type player struct { team common.Team battling bool sortIdx int32 + vipLv int32 + vipExp int64 + hasVipLucky int32 } func (this *player) SendMsg(rspMsg proto.Message) { @@ -59,6 +62,9 @@ func (this *player) parseUserInfo(userInfo *common.UserInfo){ q5.DuckToSimple(userInfo.TotalLucky, &this.totalLucky) q5.DuckToSimple(userInfo.AdmissionItemNum, &this.admissionItemNum) q5.DuckToSimple(userInfo.CircuitScore, &this.circuitScore) + q5.DuckToSimple(userInfo.VipLv, &this.vipLv) + q5.DuckToSimple(userInfo.VipExp, &this.vipExp) + q5.DuckToSimple(userInfo.HasVipLucky, &this.hasVipLucky) } func (this *player) parseHeroInfo(heroInfo *common.HeroInfo){