Commit 5dee65495561a32f0aa8dd381ed9a4e205dd40a4

Authored by zhangqijia
1 parent e03f9e59

fix: 挂机图鉴- 修复切换关卡需要点两次的bug

Showing 2 changed files with 1 additions and 2 deletions   Show diff stats
src/actions/HangAction.lua
... ... @@ -127,7 +127,7 @@ local function checkReward(role, isTreasure, carbonId)
127 127  
128 128 --挂机得到的宝藏加入到挂机奖励
129 129 if isTreasure or false == true then
130   - local treasureList= role.dailyData:checkTreasureList(hangInfo.carbonId) or {}
  130 + local treasureList= role.dailyData:checkTreasureList(carbonId or hangInfo.carbonId) or {}
131 131 if next(treasureList) ~= nil then
132 132 for id, val in pairs(treasureList) do
133 133 local award = val.award:toNumMap()
... ...
src/models/Daily.lua
... ... @@ -239,7 +239,6 @@ function Daily:checkTreasureChapterId(curInfo, treasureList, chapterId)
239 239 local treasure = nil
240 240  
241 241 if not curInfo then
242   - print("curInfo is nil")
243 242 return treasure
244 243 end
245 244 local treasureBase = self:getProperty("treasureBase")
... ...