Commit 16f58f2154fc61fd4822153f38c6c939e4b24711

Authored by liuzujun
1 parent 73d683e6

兑换商店不刷新bug

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
1   -Subproject commit c820a5807bf24a342c40fcbb5def8a31899cc664
  1 +Subproject commit 02ba983a6b9e4b0345a8c5bebc3657976c18514a
... ...
src/models/Activity.lua
... ... @@ -490,14 +490,14 @@ activityFunc[Activity.ActivityType.Exchange] = {
490 490 if not cfg then return end
491 491 local refreshTimes = cfg.condition2:toArray(false, "=")
492 492 for i = 1, #refreshTimes do
493   - local rt = toUnixtime(refreshTimes[1]..string_format("%02x", RESET_TIME))
  493 + local rt = toUnixtime(refreshTimes[i]..string_format("%02x", RESET_TIME))
494 494 if timeNow >= rt and rt > lastTs then
495 495 lastTs = rt
496 496 actData = {}
497 497 end
498 498 end
499   - if next(actData) then
500   - actData["ts"] = lastTs
  499 + if not next(actData) then
  500 + actData["ts"] = timeNow
501 501 self:updateActData(actType, actData, not notify)
502 502 end
503 503 end,
... ...