Commit 9ee46da40e8fb70232b1f1920ed900b49256f259

Authored by zhouhaihai
1 parent f773a677

第一层也发奖

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -160,8 +160,11 @@ function Adv:initByChapter(params)
160 160 self:checkAdvUnlock(1, self.level)
161 161  
162 162 -- 中继进入奖励
163   - if relayData and isEnter then
164   - self:awardRelay(relayData, notNotify)
  163 + if isEnter then
  164 + relayData = relayData or self:isHaveRelay(level, chapterId)
  165 + if relayData then
  166 + self:awardRelay(relayData, notNotify)
  167 + end
165 168 end
166 169  
167 170 if not notNotify then
... ...