Commit 9fc8b7f0b325d20431e94d923b6d8c71ad562476

Authored by chenyueqi
1 parent b8788f58

分割字符串错误

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