线上问题 大闹天宫招募带宝器的英雄是报错

dev_chengFeng
zhangqiang 2020-10-09 15:15:26 +08:00
parent 422a8abaa4
commit f56fa9d4e8
2 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,11 @@ function this:BtnClickEvent()
if curSelectHero then
--LogError("monsterData.sortId,curSelectHero.dynamicId "..monsterData.sortId.." "..curSelectHero.id)
NetManager.HeroNodeRequest(monsterData.sortId,curSelectHero.id,function (msg)
-- LogError("#msg.drop.Hero "..#msg.drop.Hero)
if msg.drop and msg.drop.soulEquip and #msg.drop.soulEquip > 0 then
for i = 1, #msg.drop.soulEquip do
ExpeditionManager.InitSingleTreasureData(msg.drop.soulEquip[i])
end
end
if msg.drop and msg.drop.Hero and msg.drop.Hero[1] then
ExpeditionManager.UpdateHeroDatas(msg.drop.Hero[1])
end

View File

@ -367,6 +367,9 @@ function this.EquipInfo()
for n = 1, #curHeroData.jewels do
local did=curHeroData.jewels[n]
local data=EquipTreasureManager.GetSingleTreasureByIdDyn(did) or ExpeditionManager.GetSingleTreasureByIdDyn(did) or GoodFriendManager.GetSingleTreasureByIdDyn(did)
if not data then
return
end
--是魂宝1 还是灵宝2
local pos= jewelConfig[data.id].Location