diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/BattleRecordManager.lua b/Assets/ManagedResources/~Lua/Modules/Battle/BattleRecordManager.lua index 28ed4a6d16..0e8728bc66 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/BattleRecordManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/BattleRecordManager.lua @@ -184,14 +184,21 @@ function this.SubmitBattleRecord() end -- 上报战斗日志 -function this.SubmitCheckFight() +function this.SubmitCheckFight(fr, br) if not this.isSubmit then PopupTipPanel.ShowTip(Language[12295]) return end local _, rcd = this.isHaveRecord() if rcd then - local gmStr = "//check_fight|".. (rcd.fightId or "") .."|".. PlayerManager.uid .."|"..rcd.seed.."|"..rcd.fightMaxRound.."|"..BattleManager.PrintBattleTable(rcd.fightData) + local gmStr = "//check_fight" + .."|fightId = ".. (rcd.fightId or "") + .."|uid = ".. PlayerManager.uid + .."|seed = "..rcd.seed + .."|maxRound = "..rcd.fightMaxRound + .."|client_result = "..(fr or "") + .."|server_result = "..(br or "") + .."|fightdata = "..BattleManager.PrintBattleTable(rcd.fightData) LogWarn("submit record: \n"..gmStr) NetManager.GMEvent(gmStr) end diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua index f66a70dbbb..095dc3e3b6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua @@ -361,7 +361,7 @@ function this.BattleEnd(result) NetManager.MapFightResultRequest(10000, "", levelId, fightType, function (msg) -- 结果检测 if msg.result ~= this.lastBattleResult.result then - BattleRecordManager.SubmitCheckFight() + BattleRecordManager.SubmitCheckFight(this.lastBattleResult.result, msg.result) end for i=1, #msg.remainHpList do @@ -389,7 +389,7 @@ function this.BattleEnd(result) --ExpeditionManager.UpdateHeroHpValue(msg.heroInfo) --ExpeditionManager.UpdateNodeValue(msg) --nodeInfo if msg.result ~= this.lastBattleResult.result then - BattleRecordManager.SubmitCheckFight() + BattleRecordManager.SubmitCheckFight(this.lastBattleResult.result, msg.result) end this.lastBattleResult.result = msg.result this.lastBattleResult.drop = msg.drop @@ -416,7 +416,7 @@ function this.BattleEnd(result) -- 判断是否需要进行结果检测 if this.fightResult then if result ~= this.fightResult then - BattleRecordManager.SubmitCheckFight() + BattleRecordManager.SubmitCheckFight(this.fightResult, result) end end -- 直接显示结果