fix(team): 修复团队锄地数据映射逻辑

- 移除无效的 undefined 初始化检查
- 直接设置团队名称到锄地映射表中
- 简化了键值对的存储逻辑
- 避免了空对象的创建和访问操作
This commit is contained in:
yan
2026-01-23 11:40:25 +08:00
parent ea81c69c7d
commit 024694e11c

View File

@@ -757,7 +757,9 @@ async function initRun(config_run) {
}]
teamHoeGroundList.filter(item => item.uid === Record.uid).forEach(item => {
const key = generatedKey(item);
team.HoeGroundMap.set(key, item.team_name)
const key_parent = generatedKey(item, true);
team.HoeGroundMap.set(key,item.team_name);
team.HoeGroundMap.set(key_parent,item.team_name);
})
log.info(`{0}加载完成`, json_path_name.HoeGround)
} catch (e) {