mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-16 03:33:25 +08:00
repo/js/采集cd管理: 解决了在某些情况下可能生成非法record目录的问题 (#1713)
* Fixed an issue where an invalid infoFileName may be created * Fixed an issue where switchParty may be called unexpectedly
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user