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 | 218 | local info = actInfoMap[actType] |
| 219 | 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 | 226 | local curData = self:getActData(actType) |
| 222 | 227 | local roundData = self:getProperty("round") |
| 223 | 228 | local curRound = roundData[actType] or 0 |
| 224 | - local ctrlData = csvdb["activity_ctrlCsv"][actType] | |
| 229 | + local ctrlData = csvdb["activity_ctrlCsv"][actId] | |
| 225 | 230 | if not ctrlData then return end |
| 226 | 231 | if curRound >= ctrlData.condition then |
| 227 | 232 | return | ... | ... |