1
This commit is contained in:
parent
cda7b53307
commit
b23d159226
@ -8,6 +8,7 @@ import (
|
|||||||
"main/common"
|
"main/common"
|
||||||
. "main/global"
|
. "main/global"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"encoding/json"
|
||||||
"mt"
|
"mt"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -342,6 +343,27 @@ func (this *player) updateChoose(skillId int32, heroUniId string,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rspObj := common.UpdateBattleInfoRsp{}
|
||||||
|
{
|
||||||
|
f5.GetSysLog().Info("updateBattleinfo:%s", rsp.GetRawData())
|
||||||
|
err := json.Unmarshal([]byte(rsp.GetRawData()), &rspObj)
|
||||||
|
if err != nil {
|
||||||
|
cb(500, "server internal error")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
{
|
||||||
|
this.name = rspObj.Info.UserInfo.Name
|
||||||
|
this.avatarUrl = rspObj.Info.UserInfo.HeadId
|
||||||
|
this.headFrame = rspObj.Info.UserInfo.HeadFrame
|
||||||
|
this.specSkill = q5.ToInt32(rspObj.Info.UserInfo.SpecSkill)
|
||||||
|
{
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user