diff --git a/src/models/Activity.lua b/src/models/Activity.lua index 5a82ef7..e6c48b6 100644 --- a/src/models/Activity.lua +++ b/src/models/Activity.lua @@ -218,10 +218,15 @@ function Activity:checkWeeklyAct(actType, notify, count, pool) local info = actInfoMap[actType] if not info then return end + local open, actId = self:isOpen(actType) + if not open then + return + end + local curData = self:getActData(actType) local roundData = self:getProperty("round") local curRound = roundData[actType] or 0 - local ctrlData = csvdb["activity_ctrlCsv"][actType] + local ctrlData = csvdb["activity_ctrlCsv"][actId] if not ctrlData then return end if curRound >= ctrlData.condition then return -- libgit2 0.21.2