【御剑行】提交

dev_chengFeng
ZhangBiao 2021-10-18 11:32:06 +08:00
parent 8f03ae0485
commit 034d727a6f
2 changed files with 13 additions and 7 deletions

View File

@ -57,13 +57,9 @@ function this.UpdataServerPanelData(msg,func)
Log("界面剧本Id:"..tostring(msg.rankId).." 当前state:"..tostring(msg.state).." 下一阶段倒计时:"..TimeToMS(this.nextTimeCount- GetTimeStamp() ).." 模板玩家数:"..tostring(#msg.modelInfo))
this.modelList = {}
this.modelList = msg.modelInfo--玩家模板信息
-- for i = 1, #this.modelList do
-- Log("玩家姓名:"..tostring(this.modelList[i].name).." 性别:"..tostring(this.modelList[i].sex))
-- end
this.activityTimeCount = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.YuJianXing).endTime
this.curResultId = {}
this.curResultId = msg.rankId
-- Log("界面剧本Id:"..tostring(msg.rankId))
Game.GlobalEvent:DispatchEvent(GameEvent.YuJianXing.UpdateRank)
if func then
func()
@ -161,7 +157,9 @@ function this.MakeRequest()
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.YuJianXing)
if id then
NetManager.RidingSwardActivityRequest(id)
NetManager.RidingSwardInfoRequest()
NetManager.RidingSwardInfoRequest(function ()
CheckRedPointStatus(RedPointType.YuJianXingMian)
end)
end
end

View File

@ -169,7 +169,11 @@ function YuJianXingPanel:SetTime()
end
local activityEnd = YuJianXingManager.activityTimeCount - GetTimeStamp()
local roundEnd = YuJianXingManager.nextTimeCount - GetTimeStamp()
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToDHM(activityEnd))
if activityEnd > 86400 then
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToDHM(activityEnd))
else
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToHMS(activityEnd))
end
if YuJianXingManager.curState == 1 then
self.nextRoundTime.text = string.format("下一轮倒计时:%s",TimeToMS(roundEnd))
elseif YuJianXingManager.curState == 2 then
@ -208,7 +212,11 @@ function YuJianXingPanel:SetTime()
end
--活动倒计时
activityEnd = activityEnd - 1
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToDHM(activityEnd))
if activityEnd > 86400 then
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToDHM(activityEnd))
else
self.curActTime.text = string.format("本期活动倒计时:%s",TimeToHMS(activityEnd))
end
self.canBetTime.text = string.format( "今日可竞猜次数:%s次",configData.JoinCount - YuJianXingManager.joinCount)
if activityEnd <= 0 then
self:ClosePanel()