From aec30d0358eb34705dd7cdb113417ae957d83e3d Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 17 Feb 2026 12:55:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(AutoPlan):=20=E4=BF=AE=E5=A4=8D=E5=89=AF?= =?UTF-8?q?=E6=9C=AC=E9=85=8D=E7=BD=AE=E8=A7=A3=E6=9E=90=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加数组长度检查以防止访问超出边界的索引 - 为sundaySelectedValue设置默认值避免未定义错误 - 在解析域选择值前验证数组索引范围 - 保持原有逻辑功能的同时增强代码健壮性 --- repo/js/AutoPlan/main.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/repo/js/AutoPlan/main.js b/repo/js/AutoPlan/main.js index 0b5616e7c..b4a102fa5 100644 --- a/repo/js/AutoPlan/main.js +++ b/repo/js/AutoPlan/main.js @@ -241,7 +241,9 @@ async function loadMode(Load, autoOrderSet, runConfig) { index++ let domainRoundNum = arr[index]; // 解析副本轮数 index++ - let sundaySelectedValue = arr[index]; // 解析周日|限时选择的值 + let sundaySelectedValue="1" + if (index