1
This commit is contained in:
parent
e5ed83fc19
commit
ad820a2f2b
@ -68,6 +68,7 @@ type MapInfoRsp struct {
|
||||
MapId int32 `json:"map_id"`
|
||||
IsMoba int32 `json:"is_moba"`
|
||||
IsOpen int32 `json:"is_open"`
|
||||
//NeedTicket int32 `json:"need_ticket"`
|
||||
}
|
||||
|
||||
type UpdateBattleInfoRsp struct {
|
||||
@ -83,12 +84,16 @@ type UpdateBattleInfoRsp struct {
|
||||
HeroId string `json:"hero_id"`
|
||||
HeadFrame string `json:"head_frame"`
|
||||
SpecSkill string `json:"spec_skill"`
|
||||
TotalLucky interface{} `json:"total_lucky"`
|
||||
AdmissionItemNum interface{} `json:"admission_item_num"`
|
||||
} `json:"user_info"`
|
||||
HeroInfo struct {
|
||||
HeroUniId string `json:"hero_uniid"`
|
||||
HeroId string `json:"hero_id"`
|
||||
Quality string `json:"quality"`
|
||||
SpecSkill string `json:"spec_skill"`
|
||||
Wealth interface{} `json:"wealth"`
|
||||
ValidLefttime interface{} `json:"valid_lefttime"`
|
||||
} `json:"hero_info"`
|
||||
} `json:"info"`
|
||||
}
|
||||
|
@ -464,11 +464,15 @@ func (this *player) updateChoose(skillId int32, heroUniId string,
|
||||
this.name = rspObj.Info.UserInfo.Name
|
||||
this.avatarUrl = rspObj.Info.UserInfo.HeadId
|
||||
this.headFrame = rspObj.Info.UserInfo.HeadFrame
|
||||
q5.DuckToSimple(rspObj.Info.UserInfo.AdmissionItemNum, &this.admissionItemNum)
|
||||
q5.DuckToSimple(rspObj.Info.UserInfo.TotalLucky, &this.totalLucky)
|
||||
{
|
||||
this.hero.heroUniId = rspObj.Info.HeroInfo.HeroUniId
|
||||
this.hero.heroId = q5.ToInt32(rspObj.Info.HeroInfo.HeroId)
|
||||
this.hero.quality = q5.ToInt32(rspObj.Info.HeroInfo.Quality)
|
||||
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)
|
||||
}
|
||||
cb(0, "")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user