Commit 9fc8b7f0b325d20431e94d923b6d8c71ad562476

Authored by chenyueqi
1 parent b8788f58

分割字符串错误

src/actions/SeaportAction.lua
@@ -184,7 +184,7 @@ function _M.taskRpc(agent, data) @@ -184,7 +184,7 @@ function _M.taskRpc(agent, data)
184 if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end 184 if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end
185 185
186 local totalCoef = 0 186 local totalCoef = 0
187 - for _, heroId in ipairs(collect.team:toNumMap()) do 187 + for _, heroId in ipairs(collect.team:toArray(true,"=")) do
188 local hero = role.heros[heroId] 188 local hero = role.heros[heroId]
189 if hero then 189 if hero then
190 totalCoef = totalCoef + getHeroCoef(hero, data.success) 190 totalCoef = totalCoef + getHeroCoef(hero, data.success)
src/models/RolePlugin.lua
@@ -1282,7 +1282,7 @@ function RolePlugin.bind(Role) @@ -1282,7 +1282,7 @@ function RolePlugin.bind(Role)
1282 if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end 1282 if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end
1283 1283
1284 local totalCoef = 0 1284 local totalCoef = 0
1285 - for _, heroId in ipairs(teams:toNumMap()) do 1285 + for _, heroId in ipairs(teams:toArray(true,"=")) do
1286 local hero = self.heros[heroId] 1286 local hero = self.heros[heroId]
1287 if hero then 1287 if hero then
1288 totalCoef = totalCoef + getHeroCoef(hero, data.success) 1288 totalCoef = totalCoef + getHeroCoef(hero, data.success)