diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index 5a220e7..02f9d2b 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -127,7 +127,7 @@ local function checkReward(role, isTreasure) --挂机得到的宝藏加入到挂机奖励 if isTreasure or false == true then - local treasureList= role.dailyData:checkTreasureList(hangInfo.carbonId) + local treasureList= role.dailyData:checkTreasureList(hangInfo.carbonId) or {} if next(treasureList) ~= nil then for id, val in pairs(treasureList) do local award = val.award:toNumMap() diff --git a/src/models/RoleBattle.lua b/src/models/RoleBattle.lua index 629fdbe..84ddcd3 100644 --- a/src/models/RoleBattle.lua +++ b/src/models/RoleBattle.lua @@ -197,7 +197,6 @@ function Role:checkBattle(battleType, params) local fixData = { hang = function() - dump(self:getProperty("hangTS")) for slot, hero in pairs(self:getProperty("hangTS").heros) do selflist[slot] = hero.type end -- libgit2 0.21.2