功能开启条件修改

dev_fengTi_And
PC-202302260912\Administrator 2023-07-19 15:05:02 +08:00
parent 2cb20e9bba
commit a40bfe0fd8
1 changed files with 14 additions and 14 deletions

View File

@ -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