数字小游戏挂机修改
parent
8d8906b93a
commit
5600588ecc
|
@ -75,12 +75,12 @@ function RatioNumberLevelPanel:BindEvent()
|
||||||
|
|
||||||
|
|
||||||
Util.AddClick(this.btn_reward, function ()
|
Util.AddClick(this.btn_reward, function ()
|
||||||
if RatioNumberManager.gameIndex==0 then
|
if RatioNumberManager.gameIndex==1 then
|
||||||
PopupTipPanel.ShowTip("至少通关一层才可领取挂机奖励")
|
PopupTipPanel.ShowTip("至少通关一层才可领取挂机奖励")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
LogError("GetTimeStamp()=="..GetTimeStamp().." showTime=="..RatioNumberManager.rewardStartTime)
|
LogError("GetTimeStamp()=="..GetTimeStamp().." showTime=="..RatioNumberManager.rewardStartTime)
|
||||||
if GetTimeStamp()-RatioNumberManager.rewardStartTime<360 then
|
if GetTimeStamp()- RatioNumberManager.rewardStartTime < 360 then
|
||||||
PopupTipPanel.ShowTip("累计挂机奖励中")
|
PopupTipPanel.ShowTip("累计挂机奖励中")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -206,12 +206,15 @@ function this.GetBoxShowState(hangupTime)
|
||||||
local state = 0
|
local state = 0
|
||||||
local curTime=GetTimeStamp()
|
local curTime=GetTimeStamp()
|
||||||
LogError("curTime=========="..curTime.." hangupTime== "..hangupTime)
|
LogError("curTime=========="..curTime.." hangupTime== "..hangupTime)
|
||||||
local addTime=curTime-hangupTime
|
if hangupTime>0 then
|
||||||
if addTime>maxTime then
|
local addTime=curTime-hangupTime
|
||||||
hangupTime=maxTime
|
if addTime>maxTime then
|
||||||
else
|
hangupTime=maxTime
|
||||||
hangupTime=addTime
|
else
|
||||||
|
hangupTime=addTime
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
LogError("hangupTime==========================="..hangupTime)
|
LogError("hangupTime==========================="..hangupTime)
|
||||||
if hangupTime < AdventureManager.adventureRefresh then
|
if hangupTime < AdventureManager.adventureRefresh then
|
||||||
state = 0
|
state = 0
|
||||||
|
|
|
@ -46,8 +46,14 @@ function RatioNumberManager.Init(msg)
|
||||||
this.chapterId =this.chapterId + 1
|
this.chapterId =this.chapterId + 1
|
||||||
end
|
end
|
||||||
this.rewardIdArr = msg.rewardIdArr
|
this.rewardIdArr = msg.rewardIdArr
|
||||||
|
LogError("this.gameindex====================================="..this.gameIndex)
|
||||||
if msg.rewardStartTime then
|
if msg.rewardStartTime then
|
||||||
this.rewardStartTime = msg.rewardStartTime
|
this.rewardStartTime = msg.rewardStartTime
|
||||||
|
else
|
||||||
|
if this.rewardStartTime==0 then
|
||||||
|
this.rewardStartTime=GetTimeStamp()
|
||||||
|
end
|
||||||
|
LogError("this.rewardStartTime======================================================"..this.rewardStartTime)
|
||||||
end
|
end
|
||||||
|
|
||||||
RatioNumberManager.SelectInit()
|
RatioNumberManager.SelectInit()
|
||||||
|
|
Loading…
Reference in New Issue