Commit 8ec16c218323bd19c5c3d3c0c8733cef800b4164
1 parent
f0c47e33
天赋升级写日志报错
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -181,7 +181,7 @@ function _M.talentRpc(agent, data) |
181 | 181 | hero_id = hero:getProperty("type"), --英雄ID |
182 | 182 | hero_talent_stagebef = oldStage, --英雄精进升级前停留阶段 |
183 | 183 | hero_talent_stage = curStage, --英雄精进升级后停留阶段 |
184 | - hero_talent_cost = json.encode(cost), --英雄精进升级消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,….} | |
184 | + hero_talent_cost = cost, --英雄精进升级消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,….} | |
185 | 185 | hero_talent_subid = curData[oldLevel].effect, --升级属性ID,生命、攻击、防御、命中、闪避分别对应(0,1,2,3,4) |
186 | 186 | hero_talent_sublevel = curData[oldLevel].level, --升级属性等级,如生命升级从1到2,则记录2 |
187 | 187 | }) | ... | ... |
src/actions/RadioAction.lua
... | ... | @@ -174,7 +174,7 @@ function _M.finishQuestRpc(agent, data) |
174 | 174 | mission_id = id, --关卡ID |
175 | 175 | mission_herolist = herolist, -- 英雄ID,排序以玩家出战设置为准,示例:[111, 222, 333, 444, 555] |
176 | 176 | mission_success_rate = totalCoef, -- 大成功几率 |
177 | - mission_reward = json.encode(r), -- 获得奖励,建议使用json格式记录。示例:{ itemid1: 1, itemid2: 3, itemid3: 5} | |
177 | + mission_reward = r, -- 获得奖励,建议使用json格式记录。示例:{ itemid1: 1, itemid2: 3, itemid3: 5} | |
178 | 178 | mission_result = 1, -- 战斗结果(0-无效,1-胜利,2-失败) |
179 | 179 | mission_roundtime = config.time, -- 完成耗时(秒) |
180 | 180 | }) | ... | ... |