Просмотр исходного кода

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

gitwallet 1 год назад
Родитель
Сommit
a51249fbdc
1 измененных файлов с 12 добавлено и 1 удалено
  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)
     AbsActLogic.checkAbsActClean(human, id)
-    initDB(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]
     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 taskConfig = AbsActExcel.drum