Commit 10020df65f9d1278bbe96090df0c42cb3e89e071
1 parent
a27e74bf
跨天礼包重置
Showing
2 changed files
with
1 additions
and
11 deletions
Show diff stats
src/GlobalVar.lua
src/models/RoleTimeReset.lua
... | ... | @@ -48,10 +48,6 @@ ResetFunc["CrossWeek"] = function(self, notify, response) |
48 | 48 | response.dinerS = {} |
49 | 49 | end |
50 | 50 | |
51 | --- 30天 非自然月 | |
52 | -ResetFunc["CrossMonth"] = function(self, notify, response) | |
53 | -end | |
54 | - | |
55 | 51 | |
56 | 52 | ResetFunc["DinerRank"] = function(self, notify, response) |
57 | 53 | self.dinerData:rankResetData(notify) |
... | ... | @@ -91,15 +87,10 @@ function Role:updateTimeReset(now, notify) |
91 | 87 | ResetFunc[funcName](self, notify, response, now) |
92 | 88 | resetMode[funcName] = true |
93 | 89 | end |
94 | - if needResetId[resetId] then | |
95 | - -- 充值商城购买记录 | |
96 | - if resetId ~= TimeReset.CrossMonth then | |
97 | - self.storeData:resetStoreReored(resetId) | |
98 | - end | |
99 | - end | |
100 | 90 | end |
101 | 91 | |
102 | 92 | for resetId, round in pairs(needResetId) do |
93 | + self.storeData:resetStoreReored(resetId) | |
103 | 94 | timeReset[resetId] = round |
104 | 95 | end |
105 | 96 | self:setProperties({timeReset = timeReset, ltime = now}) | ... | ... |