【跨服】修复角色信息英雄详细信息报错
parent
e01694fa28
commit
d2090cb930
|
|
@ -136,7 +136,7 @@ function this.SingleInfoDataShow(go,data)
|
|||
Util.GetGameObject(heroGo, "lvbg/levelText"):GetComponent("Text").text=data.teamInfo[i].level
|
||||
local heroData = {}
|
||||
Util.AddOnceClick(Util.GetGameObject(Util.GetGameObject(curHeroGoList[data.teamInfo[i].position], "frame"), "frame"), function()
|
||||
NetManager.ViewHeroInfoRequest(data.uid,data.teamInfo[i].heroid,function(msg)
|
||||
NetManager.ViewHeroInfoRequest(data.uid,data.teamInfo[i].heroid,nil,function(msg)
|
||||
heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects)
|
||||
GoodFriendManager.InitEquipData(msg.equip,heroData)
|
||||
UIManager.OpenPanel(UIName.RoleInfoPopup, heroData,true)
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ function this.FormationAdapter(teamInfo)
|
|||
local frameBtn = Util.GetGameObject(this.Demons[hero.position], "frame")
|
||||
local heroData = {}
|
||||
Util.AddOnceClick(frameBtn, function()
|
||||
NetManager.ViewHeroInfoRequest(this._MemId,hero.heroid,function(msg)
|
||||
NetManager.ViewHeroInfoRequest(this._MemId,hero.heroid,nil,function(msg)
|
||||
if not hero.heroid then
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue