Commit a68982317194eead972d4bc903b723e6b6c79c5c
1 parent
67b46a6b
兑换活动上线检测是否需要刷新
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/models/Activity.lua
| @@ -482,6 +482,9 @@ activityFunc[Activity.ActivityType.Exchange] = { | @@ -482,6 +482,9 @@ activityFunc[Activity.ActivityType.Exchange] = { | ||
| 482 | actData[actId] = {} | 482 | actData[actId] = {} |
| 483 | self:updateActData(actType, actData, not notify) | 483 | self:updateActData(actType, actData, not notify) |
| 484 | end, | 484 | end, |
| 485 | + ["login"] = function(self, actType, actId) | ||
| 486 | + activityFunc[Activity.ActivityType.Sign]["crossDay"](self, actType, true, actId) | ||
| 487 | + end, | ||
| 485 | ["crossDay"] = function(self, actType, notify, actId) | 488 | ["crossDay"] = function(self, actType, notify, actId) |
| 486 | local actData = self:getActData(actType) or {} | 489 | local actData = self:getActData(actType) or {} |
| 487 | local lastTs = actData["ts"] or 0 | 490 | local lastTs = actData["ts"] or 0 |