Commit a2a4855b75cf7a98c3be0d6aecfa7fd989138a1f

Authored by liuzujun
2 parents bdfc994d 70aa8660

Merge branch 'develop' into qa

* develop:
  发送多天邮件bug
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/models/Store.lua
... ... @@ -73,7 +73,7 @@ function Store:sendMonthCardEmail()
73 73 if ts == 0 then
74 74 cnt = 1
75 75 else
76   - local diff = dayLater(timeNow) - dayLater(ts)
  76 + local diff = math.floor((dayLater(timeNow) - dayLater(ts))/DAY_SEC)
77 77 diff = diff < 0 and 0 or diff
78 78 diff = diff > 31 and 31 or diff
79 79 cnt = diff
... ...