Commit d4d00016c9050cc725a69fb8c8a26e01434a3e76

Authored by liuzujun
1 parent b1644d3b

付费签到开始时间改为开服时间

Showing 2 changed files with 10 additions and 0 deletions   Show diff stats
src/models/Activity.lua
... ... @@ -347,6 +347,15 @@ activityFunc[Activity.ActivityType.PaySignIn] = {
347 347 end,
348 348 ["close"] = function(self, actType, notify)
349 349 self.owner.storeData:SetActGoodsFlag("paySignIn", 0)
  350 +
  351 + local rechargeRecord = self.owner.storeData:getProperty("payR")
  352 + for id, cfg in pairs(csvdb["shop_rechargeCsv"]) do
  353 + if cfg.shop == 2 and cfg.type == CardType.PaySignCard then
  354 + rechargeRecord[id] = nil
  355 + break
  356 + end
  357 + end
  358 + self.owner.storeData:updateProperty({field="payR", value=rechargeRecord})
350 359 end,
351 360 }
352 361  
... ...
src/models/Store.lua
... ... @@ -383,6 +383,7 @@ end
383 383 -- 购买付费签到 按开服时间算奖励
384 384 function Store:onBuyPaySignCard(dur)
385 385 local curTs = skynet.timex()
  386 + curTs = getServerOpenTs()
386 387  
387 388 self:SetActGoodsFlag("paySignIn", curTs)
388 389  
... ...