|
|
@@ -247,19 +247,19 @@ function onZeroAll(funcID)
|
|
|
local nNowTime = os.time()
|
|
|
local tDate = os.date("*t",nNowTime)
|
|
|
|
|
|
- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
- if nOpenServerDay <= 7 then
|
|
|
- return
|
|
|
- end
|
|
|
+ -- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
+ -- if nOpenServerDay <= 7 then
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
|
|
|
if WeekLoopActDef.WEEKACT_TIME ~= tDate.hour then
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- print("[WeekLoopACT_onZeroAll] 进入定时处理")
|
|
|
+ -- print("[WeekLoopACT_onZeroAll] 进入定时处理")
|
|
|
|
|
|
if WeekLoopActDef.WEEKACT_OPENDAY == tDate.wday then
|
|
|
- print("[WeekLoopACT_onZeroAll] 周末活动开始打印")
|
|
|
+ -- print("[WeekLoopACT_onZeroAll] 周末活动开始打印")
|
|
|
|
|
|
tWeekActInfo = {}
|
|
|
tWeekActInfo.isRun = true
|
|
|
@@ -279,7 +279,7 @@ function onZeroAll(funcID)
|
|
|
-- 活动开始
|
|
|
WeekLoopACT_Begin()
|
|
|
|
|
|
- print("[WeekLoopACT_onZeroAll] 时间打印 nStartTime = ".. tWeekActInfo.nStartTime.." nEendTime = "..tWeekActInfo.nEendTime)
|
|
|
+ -- print("[WeekLoopACT_onZeroAll] 时间打印 nStartTime = ".. tWeekActInfo.nStartTime.." nEendTime = "..tWeekActInfo.nEendTime)
|
|
|
elseif WeekLoopActDef.WEEKACT_ENDDAY == tDate.wday then
|
|
|
print("[WeekLoopACT_onZeroAll] 周末活动结束打印")
|
|
|
|
|
|
@@ -298,12 +298,12 @@ function WeekLoopACT_Init()
|
|
|
local nNowTime = os.time()
|
|
|
local tDate = os.date("*t",nNowTime)
|
|
|
|
|
|
- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
- if nOpenServerDay < 7 then
|
|
|
- return
|
|
|
- end
|
|
|
+ -- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
+ -- if nOpenServerDay < 7 then
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
|
|
|
- print("[WeekLoopACT_Init] 起服初始化 wday = "..tDate.wday.." m = "..tDate.month.." d = "..tDate.day.." h = "..tDate.hour)
|
|
|
+ -- print("[WeekLoopACT_Init] 起服初始化 wday = "..tDate.wday.." m = "..tDate.month.." d = "..tDate.day.." h = "..tDate.hour)
|
|
|
|
|
|
-- 等于星期六 或者 小于星期三
|
|
|
if WeekLoopActDef.WEEKACT_OPENDAY == tDate.wday or WeekLoopActDef.WEEKACT_ENDDAY > tDate.wday then
|
|
|
@@ -329,7 +329,7 @@ function WeekLoopACT_Init()
|
|
|
tWeekActInfo.nEendTime = os.time(tCalDate)
|
|
|
tWeekActInfo.nCardBatch = WeekLoopACT_GetCardBatch()
|
|
|
|
|
|
- print("[WeekLoopACT_Init] 时间打印 nStartTime = ".. tWeekActInfo.nStartTime.." nEendTime = "..tWeekActInfo.nEendTime)
|
|
|
+ -- print("[WeekLoopACT_Init] 时间打印 nStartTime = ".. tWeekActInfo.nStartTime.." nEendTime = "..tWeekActInfo.nEendTime)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
@@ -366,17 +366,17 @@ function onLogin(human, funcID)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
- if nOpenServerDay < 7 then
|
|
|
- print("[onLogin] 玩家登录,当前服务器开放时间不足,直接返回 nOpenServerDay = "..nOpenServerDay)
|
|
|
- return
|
|
|
- end
|
|
|
+ -- local nOpenServerDay = CommonDB.getServerOpenDay()
|
|
|
+ -- if nOpenServerDay < 7 then
|
|
|
+ -- print("[onLogin] 玩家登录,当前服务器开放时间不足,直接返回 nOpenServerDay = "..nOpenServerDay)
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
|
|
|
local nLastEndTime = WeekLoopACT_GetHumanEndTime(human)
|
|
|
local nState = WeekLoopACT_GetHumanEndMail(human)
|
|
|
|
|
|
local nSendMail = nState and 1 or 0
|
|
|
- print("[onLogin] 玩家登录 nSendMail = "..nSendMail)
|
|
|
+ -- print("[onLogin] 玩家登录 nSendMail = "..nSendMail)
|
|
|
|
|
|
-- 未开始
|
|
|
if false == WeekLoopACT_IsRun() then
|