Commit d2c8c7716eae84f8bb1fc41497ed03b9f7150cb4

Authored by zhangqijia
2 parents 251d8e5e acdaca24

Merge remote-tracking branch 'origin/cn/develop' into cn/develop

# Conflicts:
#	src/actions/HangAction.lua
Showing 2 changed files with 2 additions and 4 deletions   Show diff stats
src/actions/HangAction.lua
... ... @@ -127,9 +127,8 @@ local function checkReward(role, isTreasure, carbonId)
127 127  
128 128 --挂机得到的宝藏加入到挂机奖励
129 129 if isTreasure or false == true then
130   - carbonId = carbonId or hangInfo.carbonId
131   - local treasureList = role.dailyData:checkTreasureList(carbonId) or {}
132   - if treasureList and next(treasureList) ~= nil then
  130 + local treasureList= role.dailyData:checkTreasureList(hangInfo.carbonId) or {}
  131 + if next(treasureList) ~= nil then
133 132 for id, val in pairs(treasureList) do
134 133 local award = val.award:toNumMap()
135 134 for k,v in pairs(award) do
... ...
src/models/RoleBattle.lua
... ... @@ -197,7 +197,6 @@ function Role:checkBattle(battleType, params)
197 197  
198 198 local fixData = {
199 199 hang = function()
200   - dump(self:getProperty("hangTS"))
201 200 for slot, hero in pairs(self:getProperty("hangTS").heros) do
202 201 selflist[slot] = hero.type
203 202 end
... ...