功能开启条件修改
parent
2cb20e9bba
commit
a40bfe0fd8
|
@ -323,20 +323,20 @@ function this.IsQualifiled(id)
|
|||
|
||||
--1#创角
|
||||
--2#开服
|
||||
local curTime=GetTimeStamp()
|
||||
if data.IfOpen then
|
||||
local type=data.IfOpen[1]
|
||||
local dayNum=data.IfOpen[2]
|
||||
if type==1 then
|
||||
if curTime<PlayerManager.userCreateTime+dayNum*24*60*60 then
|
||||
return false
|
||||
end
|
||||
elseif type==2 then
|
||||
if curTime<PlayerManager.GetServerOpenTime()+dayNum*24*60*60 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
-- local curTime=GetTimeStamp()
|
||||
-- if data.IfOpen then
|
||||
-- local type=data.IfOpen[1]
|
||||
-- local dayNum=data.IfOpen[2]
|
||||
-- if type==1 then
|
||||
-- if curTime<PlayerManager.userCreateTime+dayNum*24*60*60 then
|
||||
-- return false
|
||||
-- end
|
||||
-- elseif type==2 then
|
||||
-- if curTime<PlayerManager.GetServerOpenTime()+dayNum*24*60*60 then
|
||||
-- return false
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
return qualifiled
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue