|
@@ -33,13 +33,19 @@ function isRed(human, YYInfo, funcConfig)
|
|
|
return false
|
|
return false
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
|
+function genAbsActData(config)
|
|
|
|
|
+ return {
|
|
|
|
|
+ actId = config.actId,
|
|
|
|
|
+ }
|
|
|
|
|
+end
|
|
|
|
|
+
|
|
|
function getAndSendMsg(human, id, config)
|
|
function getAndSendMsg(human, id, config)
|
|
|
local absAct = human.db.absAct[id]
|
|
local absAct = human.db.absAct[id]
|
|
|
if not absAct then
|
|
if not absAct then
|
|
|
print("not found human.db.absAct")
|
|
print("not found human.db.absAct")
|
|
|
return
|
|
return
|
|
|
end
|
|
end
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
local actId = config.actId
|
|
local actId = config.actId
|
|
|
local msgRet = Msg.gc.GC_ABS_ACT_JIFEN_DRAW_QUERY
|
|
local msgRet = Msg.gc.GC_ABS_ACT_JIFEN_DRAW_QUERY
|
|
|
local jifenDrawConfig = AbsActExcel.absJifenDraw[actId]
|
|
local jifenDrawConfig = AbsActExcel.absJifenDraw[actId]
|
|
@@ -47,7 +53,14 @@ function getAndSendMsg(human, id, config)
|
|
|
print("not found jifenDrawConfig",actId)
|
|
print("not found jifenDrawConfig",actId)
|
|
|
return
|
|
return
|
|
|
end
|
|
end
|
|
|
-
|
|
|
|
|
|
|
+ if actId ~= absAct.actId then
|
|
|
|
|
+ local finish = absAct.finish or os.time()
|
|
|
|
|
+ human.db.absAct[id] = {
|
|
|
|
|
+ actId = actId,
|
|
|
|
|
+ finish = finish,
|
|
|
|
|
+ }
|
|
|
|
|
+ absAct = human.db.absAct[id]
|
|
|
|
|
+ end
|
|
|
local len = 0
|
|
local len = 0
|
|
|
for k, config in ipairs(jifenDrawConfig.heroList) do
|
|
for k, config in ipairs(jifenDrawConfig.heroList) do
|
|
|
len = len + 1
|
|
len = len + 1
|