【御剑行】红点提交
parent
46d38b01ec
commit
6ebe5720a6
|
@ -1174,6 +1174,7 @@ function this:OnShow()
|
|||
FixedUpdateBeat:Add(this.OnUpdate, self)--长按方法注册
|
||||
addUpDateNum = addUpDateNum + 1
|
||||
end
|
||||
YuJianXingManager.MakeRequest()
|
||||
end
|
||||
|
||||
--
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue