|
@@ -35,7 +35,7 @@ function initAfterHot()
|
|
|
local time2 = config.openEnd * oneDay + oepenTime
|
|
local time2 = config.openEnd * oneDay + oepenTime
|
|
|
local startTime = Util.getDayStartTime(time)
|
|
local startTime = Util.getDayStartTime(time)
|
|
|
local endTime = Util.getDayStartTime(time2) - 1
|
|
local endTime = Util.getDayStartTime(time2) - 1
|
|
|
- -- 如果是当天就结束的活动
|
|
|
|
|
|
|
+ -- 锟斤拷锟斤拷堑锟斤拷锟酵斤拷锟斤拷锟侥活动
|
|
|
if config.openStart == config.openEnd then
|
|
if config.openStart == config.openEnd then
|
|
|
endTime = startTime + oneDay - 1
|
|
endTime = startTime + oneDay - 1
|
|
|
end
|
|
end
|
|
@@ -54,7 +54,7 @@ function initDB(human)
|
|
|
local config = getConfigByActID()
|
|
local config = getConfigByActID()
|
|
|
if human.db.limitPerpleHero then
|
|
if human.db.limitPerpleHero then
|
|
|
if human.db.limitPerpleHero.endTime ~= config.endTime then
|
|
if human.db.limitPerpleHero.endTime ~= config.endTime then
|
|
|
- -- 结算
|
|
|
|
|
|
|
+ -- 锟斤拷锟斤拷
|
|
|
|
|
|
|
|
human.db.limitPerpleHero = {}
|
|
human.db.limitPerpleHero = {}
|
|
|
human.db.limitPerpleHero.endTime = config.endTime
|
|
human.db.limitPerpleHero.endTime = config.endTime
|
|
@@ -95,7 +95,7 @@ function getLeftTime(human, YYInfo, funcConfig)
|
|
|
return 0
|
|
return 0
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
--- 返回活动数据
|
|
|
|
|
|
|
+-- 锟斤拷锟截活动锟斤拷锟斤拷
|
|
|
function getAndSendMsg(human, param)
|
|
function getAndSendMsg(human, param)
|
|
|
local config = OpenActExcel.limitPerpleHero[param]
|
|
local config = OpenActExcel.limitPerpleHero[param]
|
|
|
if not config then return end
|
|
if not config then return end
|
|
@@ -103,7 +103,7 @@ function getAndSendMsg(human, param)
|
|
|
if now < config.startTime and now > config.endTime then
|
|
if now < config.startTime and now > config.endTime then
|
|
|
return
|
|
return
|
|
|
end
|
|
end
|
|
|
- -- 发送数据
|
|
|
|
|
|
|
+ -- 锟斤拷锟斤拷锟斤拷锟斤拷
|
|
|
local msgRet = Msg.gc.GC_OA_LIMIT_PERPLEHERO_QUERY
|
|
local msgRet = Msg.gc.GC_OA_LIMIT_PERPLEHERO_QUERY
|
|
|
msgRet.startTime = config.startTime
|
|
msgRet.startTime = config.startTime
|
|
|
msgRet.endTime = config.endTime
|
|
msgRet.endTime = config.endTime
|
|
@@ -128,7 +128,7 @@ function getAndSendMsg(human, param)
|
|
|
|
|
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
--- 设置心仪英雄
|
|
|
|
|
|
|
+-- 锟斤拷锟斤拷锟斤拷锟斤拷英锟斤拷
|
|
|
function setPerpleHero(human, heroID, param)
|
|
function setPerpleHero(human, heroID, param)
|
|
|
local config = OpenActExcel.limitPerpleHero[param]
|
|
local config = OpenActExcel.limitPerpleHero[param]
|
|
|
if not config then return end
|
|
if not config then return end
|
|
@@ -168,7 +168,7 @@ function onDrawCardActive(human, id, op, actConfig, skip,isAct)
|
|
|
|
|
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
- -- 没有活动数据
|
|
|
|
|
|
|
+ -- 没锟叫活动锟斤拷锟斤拷
|
|
|
if not state then
|
|
if not state then
|
|
|
return
|
|
return
|
|
|
end
|
|
end
|