From 839ecb8bd9e3b1e328a33b7965fa6dd5c474a9d5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 15 Oct 2024 17:24:40 +0800 Subject: [PATCH] 1 --- server/matchserver/common/types.go | 1 + server/matchserver/player/player.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index ff92ce20..f1540b1a 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -31,6 +31,7 @@ type UserInfo struct { VipLv interface{} `json:"vip_lv"` VipExp interface{} `json:"vip_exp"` HasVipLucky interface{} `json:"has_vip_lucky"` + HasLuckySymbol interface{} `json:"has_lucky_symbol"` } type HeroInfo struct { diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index fc793778..14c6dfb3 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -47,6 +47,7 @@ type player struct { vipLv int32 vipExp int64 hasVipLucky int32 + hasLuckySymbol int32 battleItems []*common.BattleItem } @@ -66,6 +67,7 @@ func (this *player) parseUserInfo(userInfo *common.UserInfo){ q5.DuckToSimple(userInfo.VipLv, &this.vipLv) q5.DuckToSimple(userInfo.VipExp, &this.vipExp) q5.DuckToSimple(userInfo.HasVipLucky, &this.hasVipLucky) + q5.DuckToSimple(userInfo.HasLuckySymbol, &this.hasLuckySymbol) } func (this *player) parseHeroInfo(heroInfo *common.HeroInfo){