Explorar el Código

Merge branch '360test' of https://gitee.com/wangwenfan/congkong into 360test

gitwallet hace 1 año
padre
commit
a51249fbdc
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12 1
      script/module/absAct/DrumBlastingLogic.lua

+ 12 - 1
script/module/absAct/DrumBlastingLogic.lua

@@ -301,13 +301,24 @@ end
 -- �ص�
 -- �ص�
 function drumTaskCallBack(human,id,type,cnt)
 function drumTaskCallBack(human,id,type,cnt)
     AbsActLogic.checkAbsActClean(human, id)
     AbsActLogic.checkAbsActClean(human, id)
-    initDB(human,id)
+   
 
 
     local state, endTime, starTime = AbsActLogic.isStarted(human, id)
     local state, endTime, starTime = AbsActLogic.isStarted(human, id)
+    -- 活動未開啓
+    if not state or os.time() > endTime then 
+        return
+    end
     
     
     local absConfig = AbsActExcel.absActivity[id]
     local absConfig = AbsActExcel.absActivity[id]
     if not absConfig then return end
     if not absConfig then return end
 
 
+    local absActData = human.db.absAct[id]
+    if not absActData then 
+        return
+    end
+
+    initDB(human,id)
+
     local nowDay = Util.diffDay(starTime) + 1
     local nowDay = Util.diffDay(starTime) + 1
     -- ������������������
     -- ������������������
     local taskConfig = AbsActExcel.drum
     local taskConfig = AbsActExcel.drum