mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-31 05:59:51 +08:00
fix(team): 修复团队锄地数据映射逻辑
- 移除无效的 undefined 初始化检查 - 直接设置团队名称到锄地映射表中 - 简化了键值对的存储逻辑 - 避免了空对象的创建和访问操作
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user