Commit b6651ec9689baaa2b094fb15c7e161eca70c017f

Authored by jiyue
2 parents c42e3402 54b7749c

Merge branch 'cn/develop' into cn/publish/preview

Showing 2 changed files with 5 additions and 4 deletions   Show diff stats
src/actions/HeroAction.lua
@@ -66,7 +66,7 @@ function _M.levelUpRpc( agent, data ) @@ -66,7 +66,7 @@ function _M.levelUpRpc( agent, data )
66 hero_upgrade_scoreget = hero:getProperty("battleV") - oldBattleV, -- 通过英雄升级提升的评分 66 hero_upgrade_scoreget = hero:getProperty("battleV") - oldBattleV, -- 通过英雄升级提升的评分
67 }) 67 })
68 68
69 - hero:mylog({desc = "levelUp", int1 = hero:getProperty("level")}) 69 + hero:mylog({desc = "levelUp", int1 = hero:getProperty("level"), int2 = hero:getProperty("type")})
70 70
71 role:checkTaskEnter("HeroLevelUp", {level = hero:getProperty("level")}) 71 role:checkTaskEnter("HeroLevelUp", {level = hero:getProperty("level")})
72 72
@@ -105,7 +105,7 @@ function _M.breakRpc( agent, data ) @@ -105,7 +105,7 @@ function _M.breakRpc( agent, data )
105 hero_break_result = getChangeAttrJson(oldAttr, hero:getTotalAttrs()), -- 英雄突破效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..} 105 hero_break_result = getChangeAttrJson(oldAttr, hero:getTotalAttrs()), -- 英雄突破效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..}
106 hero_break_level = hero:getMaxLevel(), -- 英雄突破后等级上限 106 hero_break_level = hero:getMaxLevel(), -- 英雄突破后等级上限
107 }) 107 })
108 - hero:mylog({desc = "break", int1 = hero:getProperty("breakL")}) 108 + hero:mylog({desc = "break", int1 = hero:getProperty("breakL"), int2 = hero:getProperty("type")})
109 109
110 SendPacket(actionCodes.Hero_breakRpc, '') 110 SendPacket(actionCodes.Hero_breakRpc, '')
111 return true 111 return true
@@ -1056,7 +1056,7 @@ function _M.drawHeroRpc(agent, data) @@ -1056,7 +1056,7 @@ function _M.drawHeroRpc(agent, data)
1056 record["quality"] = itemData.quality 1056 record["quality"] = itemData.quality
1057 1057
1058 redisproxy:lpush("drawHeroRecord", MsgPack.pack(record)) 1058 redisproxy:lpush("drawHeroRecord", MsgPack.pack(record))
1059 - redisproxy.ltrim("drawHeroRecord", 0, 10000) 1059 + redisproxy:ltrim("drawHeroRecord", 0, 10000)
1060 end 1060 end
1061 end 1061 end
1062 1062
src/actions/RadioAction.lua
@@ -123,7 +123,8 @@ function _M.startQuestRpc(agent, data) @@ -123,7 +123,8 @@ function _M.startQuestRpc(agent, data)
123 local getActIDs = function () 123 local getActIDs = function ()
124 local actids = {} 124 local actids = {}
125 for _, v in pairs(radioTask or {}) do 125 for _, v in pairs(radioTask or {}) do
126 - actids[v.actid] = (actids[v.actid] or 0) + 1 126 + local actid = v.actid or 0
  127 + actids[actid] = (actids[actid] or 0) + 1
127 end 128 end
128 return actids 129 return actids
129 end 130 end