Commit cb5741f5b2068fccd80011a7b43e069f1ae187fd

Authored by 熊润斐
2 parents 5f44b03d bf096b07

Merge branch 'tr/bugfix' into tr/publish/preview

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
src/models/Store.lua
... ... @@ -376,6 +376,14 @@ function Store:OnTriggerLimitTimePack(eventType, param)
376 376 gift_name = rechargeCfg.title, --礼包名称
377 377 })
378 378 self:updateProperty({field = "limitTPack", value = limitPack})
  379 + -- 每日抽卡限时礼包 触发重置
  380 + if eventType == TriggerEventType.DrawHeroCnt then
  381 + local payR = self:getProperty("payR")
  382 + if payR[rechargeCfg.id] then
  383 + payR[rechargeCfg.id] = nil
  384 + self:updateProperty({field = "payR", value = payR})
  385 + end
  386 + end
379 387 end
380 388 end
381 389 --if next(result) then
... ...