This commit is contained in:
aozhiwei 2024-10-15 17:24:40 +08:00
parent 6736982cc2
commit 839ecb8bd9
2 changed files with 3 additions and 0 deletions

View File

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

View File

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