Commit 09a115e9621dba46ff779e8a5b6e24492095bd2d
1 parent
62c5e2f0
fix: 挂机图鉴, 切换挂机关卡,重置挂机时间
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/actions/HangAction.lua
... | ... | @@ -127,7 +127,8 @@ 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 | + carbonId = carbonId or hangInfo.carbonId | |
131 | + local treasureList= role.dailyData:checkTreasureList(carbonId) or {} | |
131 | 132 | if next(treasureList) ~= nil then |
132 | 133 | for id, val in pairs(treasureList) do |
133 | 134 | local award = val.award:toNumMap() | ... | ... |