竞技守卫名字修改提交

(cherry picked from commit d3efa809d8)
dev_chengFeng
jiaoyangna 2021-03-12 16:35:24 +08:00
parent fa64d90f08
commit 579f2806c3
2 changed files with 13 additions and 2 deletions

View File

@ -159,13 +159,13 @@ function this.RequestArenaChallenge(index, isSkip, func)
arg.result = msg.fightResult
arg.blue = {}
arg.blue.uid = PlayerManager.uid
arg.blue.name = PlayerManager.nickName
arg.blue.name = JingJiShouWeiToEn(PlayerManager.nickName)
arg.blue.head = PlayerManager.head
arg.blue.frame = HeadManager.GetCurFrameId()
arg.blue.deltaScore = msg.myScoreChange
arg.red= {}
arg.red.uid = enemy.personInfo.uid
arg.red.name =JingJiShouWeiToEn(enemy.personInfo.name)
arg.red.name = JingJiShouWeiToEn(enemy.personInfo.name)
arg.red.head = enemy.personInfo.head
arg.red.frame = enemy.personInfo.headFrame
arg.red.deltaScore = msg.defScoreChange
@ -226,6 +226,9 @@ function this.RequestArenaRecord()
-- 请求刷新数据,并刷新显示
NetManager.RequestArenaRecord(function(msg)
this.ArenaRecords = msg.arenaRecordInfo
for k,v in ipairs(this.ArenaRecords) do
v.attackInfo.name = JingJiShouWeiToEn(v.attackInfo.name)
end
table.sort(this.ArenaRecords, function(a,b)
return a.attackTime > b.attackTime
end)

View File

@ -88,6 +88,8 @@ function this.RequestTopMatchBaseInfo(func)
this.baseInfo.loser = msg.loser--是否被淘汰
this.myBattleInfo = msg.championBattleInfo
this.myBattleInfo.myInfo.name = JingJiShouWeiToEn(this.myBattleInfo.myInfo.name)
this.myBattleInfo.enemyInfo.name = JingJiShouWeiToEn(this.myBattleInfo.enemyInfo.name)
isChange = false
this.BaseDataEndTimeCountDown()
this.RefreshBaseInfo()
@ -147,6 +149,10 @@ function this.RequestBattleHistory(func)
-- 获取巅峰赛战斗记录
NetManager.GetTopMatchHistoryBattle(function(msg)
this.battleHistoryInfo = msg.enemyPairInfo
for k,v in ipairs(this.battleHistoryInfo) do
v.blueEnemy.personInfo.name = JingJiShouWeiToEn(v.blueEnemy.personInfo.name)
v.redEnemy.personInfo.name = JingJiShouWeiToEn(v.redEnemy.personInfo.name)
end
-- 对历史记录排序
table.sort(this.battleHistoryInfo, function(a, b)
return a.roundTimes > b.roundTimes
@ -246,6 +252,8 @@ function this.RequestBetBaseInfo(func,isPlayBattle)
-- 获取巅峰战信息
NetManager.GetBetMatchInfo(0, function(msg)
this.betBattleInfo = msg.championBattleInfo
this.betBattleInfo.myInfo.name = JingJiShouWeiToEn(this.betBattleInfo.myInfo.name)
this.betBattleInfo.enemyInfo.name = JingJiShouWeiToEn(this.betBattleInfo.enemyInfo.name)
isChange = false
-- LogGreen("竞猜双方uid "..msg.championBattleInfo.myInfo.uid.." "..msg.championBattleInfo.enemyInfo.uid)
this.betRateInfo = msg.championBetInfo