From 0c2a0e4fb5ff1f1ddc5241147f7720f31dcedb1d Mon Sep 17 00:00:00 2001 From: Yihan Zhao <61570580+Juhao73692@users.noreply.github.com> Date: Tue, 26 Aug 2025 10:59:50 +0800 Subject: [PATCH] =?UTF-8?q?repo/js/=E9=87=87=E9=9B=86cd=E7=AE=A1=E7=90=86:?= =?UTF-8?q?=20=E8=A7=A3=E5=86=B3=E4=BA=86=E5=9C=A8=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E5=8F=AF=E8=83=BD=E7=94=9F=E6=88=90?= =?UTF-8?q?=E9=9D=9E=E6=B3=95record=E7=9B=AE=E5=BD=95=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#1713)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed an issue where an invalid infoFileName may be created * Fixed an issue where switchParty may be called unexpectedly --- repo/js/采集cd管理/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/js/采集cd管理/main.js b/repo/js/采集cd管理/main.js index ffb66da69..b1d042da2 100644 --- a/repo/js/采集cd管理/main.js +++ b/repo/js/采集cd管理/main.js @@ -122,7 +122,7 @@ if (!userSettings.infoFileName) { userSettings.pathGroup2CdType, userSettings.pathGroup3CdType, userSettings.otherPathGroupsCdTypes, - ].join("."); + ].join("_"); } // 定义自定义函数 basename,用于获取文件名 @@ -307,7 +307,7 @@ async function readFolder(folderPath, onlyJson) { genshin.returnMainUi(); //切换到指定配队 - if (partyNamesArray[groupNumber - 1] !== "") { + if (groupNumber - 1 < partyNamesArray.length && partyNamesArray[groupNumber - 1] !== "") { //队伍配置存在且不为空 await genshin.switchParty(partyNamesArray[groupNumber - 1]) }