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,9 +127,8 @@ local function checkReward(role, isTreasure, carbonId)
127 127
128 --挂机得到的宝藏加入到挂机奖励 128 --挂机得到的宝藏加入到挂机奖励
129 if isTreasure or false == true then 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 for id, val in pairs(treasureList) do 132 for id, val in pairs(treasureList) do
134 local award = val.award:toNumMap() 133 local award = val.award:toNumMap()
135 for k,v in pairs(award) do 134 for k,v in pairs(award) do
src/models/RoleBattle.lua
@@ -197,7 +197,6 @@ function Role:checkBattle(battleType, params) @@ -197,7 +197,6 @@ function Role:checkBattle(battleType, params)
197 197
198 local fixData = { 198 local fixData = {
199 hang = function() 199 hang = function()
200 - dump(self:getProperty("hangTS"))  
201 for slot, hero in pairs(self:getProperty("hangTS").heros) do 200 for slot, hero in pairs(self:getProperty("hangTS").heros) do
202 selflist[slot] = hero.type 201 selflist[slot] = hero.type
203 end 202 end