Commit ee021c58da4d8118aa6422c2b638eaa55777824a
1 parent
2f7891b4
每周循环任务bug
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/models/Activity.lua
@@ -218,10 +218,15 @@ function Activity:checkWeeklyAct(actType, notify, count, pool) | @@ -218,10 +218,15 @@ function Activity:checkWeeklyAct(actType, notify, count, pool) | ||
218 | local info = actInfoMap[actType] | 218 | local info = actInfoMap[actType] |
219 | if not info then return end | 219 | if not info then return end |
220 | 220 | ||
221 | + local open, actId = self:isOpen(actType) | ||
222 | + if not open then | ||
223 | + return | ||
224 | + end | ||
225 | + | ||
221 | local curData = self:getActData(actType) | 226 | local curData = self:getActData(actType) |
222 | local roundData = self:getProperty("round") | 227 | local roundData = self:getProperty("round") |
223 | local curRound = roundData[actType] or 0 | 228 | local curRound = roundData[actType] or 0 |
224 | - local ctrlData = csvdb["activity_ctrlCsv"][actType] | 229 | + local ctrlData = csvdb["activity_ctrlCsv"][actId] |
225 | if not ctrlData then return end | 230 | if not ctrlData then return end |
226 | if curRound >= ctrlData.condition then | 231 | if curRound >= ctrlData.condition then |
227 | return | 232 | return |