【跨服】修复角色信息英雄详细信息报错

dev_chengFeng
JieLing 2021-07-26 09:53:36 +08:00 committed by zhangqiang
parent e01694fa28
commit d2090cb930
2 changed files with 2 additions and 2 deletions

View File

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

View File

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