From 024694e11cf3859a037c8d0ffc619655d5081b79 Mon Sep 17 00:00:00 2001 From: yan Date: Fri, 23 Jan 2026 11:40:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(team):=20=E4=BF=AE=E5=A4=8D=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=E9=94=84=E5=9C=B0=E6=95=B0=E6=8D=AE=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除无效的 undefined 初始化检查 - 直接设置团队名称到锄地映射表中 - 简化了键值对的存储逻辑 - 避免了空对象的创建和访问操作 --- repo/js/FullyAutoAndSemiAutoTools/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repo/js/FullyAutoAndSemiAutoTools/main.js b/repo/js/FullyAutoAndSemiAutoTools/main.js index 4f396a767..a2234a9a7 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/main.js +++ b/repo/js/FullyAutoAndSemiAutoTools/main.js @@ -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) {