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){