【log】提交
parent
3f7dd0db96
commit
76b7b5caca
|
@ -111,8 +111,8 @@ function this.UpdateTopMatchStage(msg)
|
|||
this.baseInfo.progress = msg.progress
|
||||
this.baseInfo.endTime = msg.endTime
|
||||
this.BaseDataEndTimeCountDown()
|
||||
Log(string.format("巅峰战阶段刷新 state = %s, progress = %s, endTime = %s, myrank = %s",
|
||||
this.baseInfo.joinState, this.baseInfo.progress, this.baseInfo.endTime, this.baseInfo.myrank))
|
||||
-- Log(string.format("巅峰战阶段刷新 state = %s, progress = %s, endTime = %s, myrank = %s",
|
||||
-- this.baseInfo.joinState, this.baseInfo.progress, this.baseInfo.endTime, this.baseInfo.myrank))
|
||||
|
||||
-- 刷新基础信息
|
||||
this.RefreshBaseInfo()
|
||||
|
@ -196,7 +196,7 @@ function this.RequestBattleHistory(func)
|
|||
table.sort(this.battleHistoryInfo, function(a, b)
|
||||
return a.roundTimes > b.roundTimes
|
||||
end)
|
||||
Log("获取历史战斗记录成功 == "..#this.battleHistoryInfo)
|
||||
-- Log("获取历史战斗记录成功 == "..#this.battleHistoryInfo)
|
||||
if func then func() end
|
||||
|
||||
end)
|
||||
|
@ -211,7 +211,7 @@ function this.RequestMyTeamRank(func)
|
|||
table.sort(this.myTeamRankInfo, function(a, b)
|
||||
return a.personInfo.rank < b.personInfo.rank
|
||||
end)
|
||||
Log("获取小组排名数据成功 == "..#this.myTeamRankInfo)
|
||||
-- Log("获取小组排名数据成功 == "..#this.myTeamRankInfo)
|
||||
if func then func() end
|
||||
|
||||
end)
|
||||
|
@ -234,7 +234,7 @@ function this.RefreshBaseInfo()
|
|||
this.baseInfo.battleStage = tonumber(string.sub(this.baseInfo.progress, 1, 1))
|
||||
this.baseInfo.battleTurn = tonumber(string.sub(this.baseInfo.progress, 2, 2))
|
||||
this.baseInfo.battleState = tonumber(string.sub(this.baseInfo.progress, 3, 3))
|
||||
LogPink("this.baseInfo.battleStage "..this.baseInfo.battleStage.." "..this.baseInfo.progress)
|
||||
-- LogPink("this.baseInfo.battleStage "..this.baseInfo.battleStage.." "..this.baseInfo.progress)
|
||||
|
||||
-- 判断阶段切换,并检测是否需要弹窗提示
|
||||
if UIManager.IsOpen(UIName.ArenaTopMatchPanel) then return end
|
||||
|
@ -242,11 +242,11 @@ function this.RefreshBaseInfo()
|
|||
if oldState ~= this.baseInfo.battleState then
|
||||
if this.baseInfo.battleState == TOP_MATCH_TIME_STATE.OPEN_IN_READY and this.baseInfo.joinState == 1 then
|
||||
--检测拍脸
|
||||
Log("准备阶段 拍脸")
|
||||
-- Log("准备阶段 拍脸")
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceSend,FacePanelType.Championship)
|
||||
elseif this.baseInfo.battleState == TOP_MATCH_TIME_STATE.OPEN_IN_GUESS then
|
||||
--检测拍脸
|
||||
Log("竞猜阶段 拍脸")
|
||||
-- Log("竞猜阶段 拍脸")
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceSend,FacePanelType.Championship)
|
||||
end
|
||||
end
|
||||
|
@ -301,7 +301,7 @@ function this.RequestBetBaseInfo(func,isPlayBattle)
|
|||
-- --LogGreen("this.myBetTarget = msg.winUid "..this.myBetTarget.." "..msg.winUid)
|
||||
this.process = msg.process
|
||||
-- --LogGreen("竞猜msg.process "..msg.process)
|
||||
Log(string.format("巅峰战赔率信息 myBetTarget = %s, betId = %s, redCoins = %s, blueCoins = %s", msg.winUid, msg.championBetInfo.id, msg.championBetInfo.redCoins, msg.championBetInfo.blueCoins))
|
||||
-- Log(string.format("巅峰战赔率信息 myBetTarget = %s, betId = %s, redCoins = %s, blueCoins = %s", msg.winUid, msg.championBetInfo.id, msg.championBetInfo.redCoins, msg.championBetInfo.blueCoins))
|
||||
-- 可以竞猜了
|
||||
this.isCanBet = true
|
||||
-- --LogGreen("this.isCanBet = true ")
|
||||
|
@ -390,7 +390,7 @@ function this.RequestBetHistory(func)
|
|||
table.sort(this.betHistoryInfo, function(a, b)
|
||||
return a.enemyPairInfo.roundTimes > b.enemyPairInfo.roundTimes
|
||||
end)
|
||||
Log("获取历史竞猜记录成功 == "..#this.betHistoryInfo)
|
||||
-- Log("获取历史竞猜记录成功 == "..#this.betHistoryInfo)
|
||||
if func then func() end
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -549,7 +549,6 @@ function this.RefreshUpTowerPoint()
|
|||
if data then
|
||||
if data.heroTid == 0 then
|
||||
local sum = this:HongMengTowerUpLimit()
|
||||
print(sum,data.value)
|
||||
if data.value >= sum then
|
||||
return false
|
||||
else
|
||||
|
|
|
@ -118,15 +118,12 @@ function this.GetHightLadderDataIsGroup()
|
|||
return isGroup ~= 0
|
||||
end
|
||||
function this.GetHightLadderDataIsStart()
|
||||
LogRed("isStart1:"..tostring(isStart))
|
||||
return isStart >= mServerArenaSetting[1].OpenWeek
|
||||
end
|
||||
function this.GetQiJieIsStart()
|
||||
LogRed("isStart3:"..tostring(isStart))
|
||||
return isStart >= mServerArenaSetting[3].OpenWeek
|
||||
end
|
||||
function this.GetYuxuIsStart()
|
||||
LogRed("isStart2:"..tostring(isStart))
|
||||
return isStart >= mServerArenaSetting[2].OpenWeek
|
||||
end
|
||||
|
||||
|
|
|
@ -840,7 +840,7 @@ end
|
|||
|
||||
-- 后端推送累充金额
|
||||
function this.RefreshAccuMoneyNum(buffer)
|
||||
Log("推送充值金额")
|
||||
-- Log("推送充值金额")
|
||||
local data=buffer:DataByte()
|
||||
local msg=PlayerInfoProto_pb.RefreshRechargeIndication()
|
||||
msg:ParseFromString(data)
|
||||
|
@ -850,7 +850,7 @@ end
|
|||
|
||||
-- 巅峰战阶段更新
|
||||
function this.TopMatchStageUpdate(buffer)
|
||||
Log("巅峰战阶段切换")
|
||||
-- Log("巅峰战阶段切换")
|
||||
local data = buffer:DataByte()
|
||||
local msg = ArenaInfoProto_pb.ChampionProgressUpdateIndication()
|
||||
msg:ParseFromString(data)
|
||||
|
@ -859,7 +859,7 @@ end
|
|||
|
||||
-- 巅峰战竞猜成功
|
||||
function this.TopMatchGuessSuccess(buffer)
|
||||
Log("巅峰战竞猜奖励发放")
|
||||
-- Log("巅峰战竞猜奖励发放")
|
||||
local data = buffer:DataByte()
|
||||
local msg = ArenaInfoProto_pb.ChampionGuessSuccessIndication()
|
||||
msg:ParseFromString(data)
|
||||
|
@ -871,7 +871,7 @@ function this.OnPrivilegeUpdate(buffer)
|
|||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.PrivilegeIndication()
|
||||
msg:ParseFromString(data)
|
||||
Log("特权解锁")
|
||||
-- Log("特权解锁")
|
||||
PrivilegeManager.OnPrivilegeUpdate(msg.infos)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue