【御剑行】红点提交

dev_chengFeng
ZhangBiao 2021-10-14 18:28:27 +08:00
parent 46d38b01ec
commit 6ebe5720a6
4 changed files with 12 additions and 12 deletions

View File

@ -1174,6 +1174,7 @@ function this:OnShow()
FixedUpdateBeat:Add(this.OnUpdate, self)--长按方法注册
addUpDateNum = addUpDateNum + 1
end
YuJianXingManager.MakeRequest()
end
--

View File

@ -24,6 +24,7 @@ function this:BindEvent()
NetManager.RidingSwardBetRequest(self.args,self.slider.value,function ()
Game.GlobalEvent:DispatchEvent(GameEvent.YuJianXing.UpdateBetTime)
Game.GlobalEvent:DispatchEvent(GameEvent.YuJianXing.UpdateRank)
CheckRedPointStatus(RedPointType.YuJianXingMian)
self.parent:ClosePanel()
end)
end)

View File

@ -88,6 +88,7 @@ function this:SingleDataShow(go,data)
NetManager.RidingSwardRewardRequest(data.time,data.betSwardId,function (msg)
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1,function ()
self:Refresh(false,false)
CheckRedPointStatus(RedPointType.YuJianXingMian)
end)
end)
end)

View File

@ -138,20 +138,9 @@ function this.CheckRedPoint()
state2 = true
end
end
LogError(tostring(state1 or state2))
return state1 or state2
end
function this.CheckBetRecord()
NetManager.RidingSwardInfoRequest(function ()
for i = 1, #this.curRecordList do
if this.curRecordList[i].state == 0 then
LogYellow("御剑行true")
return true
end
end
LogYellow("御剑行false")
return false
end)
end
function this.CheckRecordList()
for i = 1, #this.curRecordList do
@ -162,4 +151,12 @@ function this.CheckRecordList()
return false
end
function this.MakeRequest()
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.YuJianXing)
if id then
NetManager.RidingSwardActivityRequest(id)
NetManager.RidingSwardInfoRequest()
end
end
return YuJianXingManager