更新一下字段

This commit is contained in:
xiekaidong 2023-06-06 18:20:42 +08:00
parent 6cb971d493
commit fac1e2c2d5

View File

@ -441,12 +441,12 @@ function BIReport:postFightEnd(battleType, chapterId, wave, duration, totalTime,
for matchType, heroId in pairs(formation) do for matchType, heroId in pairs(formation) do
local entity = DataManager.HeroData:getHeroById(heroId) local entity = DataManager.HeroData:getHeroById(heroId)
if entity then if entity then
if args.fomation then if args.formation then
args.fomation = args.fomation .. "|" args.formation = args.formation .. "|"
else else
args.fomation = GConst.EMPTY_STRING args.formation = GConst.EMPTY_STRING
end end
args.fomation = args.fomation .. heroId .. ":" .. entity:getLv() args.formation = args.formation .. heroId .. ":" .. entity:getLv()
famation_level = famation_level + entity:getLv() famation_level = famation_level + entity:getLv()
end end
end end
@ -870,12 +870,12 @@ function BIReport:postHeroOpt(heroId, optType)
for matchType, heroId in pairs(formation) do for matchType, heroId in pairs(formation) do
local entity = DataManager.HeroData:getHeroById(heroId) local entity = DataManager.HeroData:getHeroById(heroId)
if entity then if entity then
if args.fomation then if args.formation then
args.fomation = args.fomation .. "|" args.formation = args.formation .. "|"
else else
args.fomation = GConst.EMPTY_STRING args.formation = GConst.EMPTY_STRING
end end
args.fomation = args.fomation .. heroId .. ":" .. entity:getLv() args.formation = args.formation .. heroId .. ":" .. entity:getLv()
end end
end end