【战斗】战斗异常上报数据添加战斗id字段,处理竞技场战斗不会上报数据的问题
parent
09fcfff167
commit
0899be29ba
|
@ -177,7 +177,7 @@ function this.SubmitBattleRecord()
|
|||
end
|
||||
local _, rcd = this.isHaveRecord()
|
||||
if rcd then
|
||||
NetManager.GMEvent("//".. PlayerManager.uid .."|"..rcd.seed.."|"..rcd.fightMaxRound.."|"..BattleManager.PrintBattleTable(rcd.fightData))
|
||||
NetManager.GMEvent("//".. (rcd.fightId or "") .."|".. PlayerManager.uid .."|"..rcd.seed.."|"..rcd.fightMaxRound.."|"..BattleManager.PrintBattleTable(rcd.fightData))
|
||||
end
|
||||
this.isSubmit = false
|
||||
PopupTipPanel.ShowTip(Language[12296])
|
||||
|
@ -191,7 +191,9 @@ function this.SubmitCheckFight()
|
|||
end
|
||||
local _, rcd = this.isHaveRecord()
|
||||
if rcd then
|
||||
NetManager.GMEvent("//check_fight|".. PlayerManager.uid .."|"..rcd.seed.."|"..rcd.fightMaxRound.."|"..BattleManager.PrintBattleTable(rcd.fightData))
|
||||
local gmStr = "//check_fight|".. (rcd.fightId or "") .."|".. PlayerManager.uid .."|"..rcd.seed.."|"..rcd.fightMaxRound.."|"..BattleManager.PrintBattleTable(rcd.fightData)
|
||||
LogWarn("submit record: \n"..gmStr)
|
||||
NetManager.GMEvent(gmStr)
|
||||
end
|
||||
this.isSubmit = false
|
||||
PopupTipPanel.ShowTip(Language[12296])
|
||||
|
|
|
@ -246,8 +246,8 @@ end
|
|||
|
||||
-- 外部调用
|
||||
function this:ShowNameShow(result, str)
|
||||
if true then return end
|
||||
this.fightResult = result
|
||||
if true then return end
|
||||
if str then
|
||||
local nameList = string.split(str, "|")
|
||||
BattleView:SetNameStr(str)
|
||||
|
|
Loading…
Reference in New Issue