From 9fc8b7f0b325d20431e94d923b6d8c71ad562476 Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Tue, 16 Mar 2021 10:04:24 +0800 Subject: [PATCH] 分割字符串错误 --- src/actions/SeaportAction.lua | 2 +- src/models/RolePlugin.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/SeaportAction.lua b/src/actions/SeaportAction.lua index 83ad0cf..f9de60c 100644 --- a/src/actions/SeaportAction.lua +++ b/src/actions/SeaportAction.lua @@ -184,7 +184,7 @@ function _M.taskRpc(agent, data) if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end local totalCoef = 0 - for _, heroId in ipairs(collect.team:toNumMap()) do + for _, heroId in ipairs(collect.team:toArray(true,"=")) do local hero = role.heros[heroId] if hero then totalCoef = totalCoef + getHeroCoef(hero, data.success) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 6b110ee..094699f 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1282,7 +1282,7 @@ function RolePlugin.bind(Role) if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end local totalCoef = 0 - for _, heroId in ipairs(teams:toNumMap()) do + for _, heroId in ipairs(teams:toArray(true,"=")) do local hero = self.heros[heroId] if hero then totalCoef = totalCoef + getHeroCoef(hero, data.success) -- libgit2 0.21.2