js:自动狗粮重制版 (#1197)

### 1.4.6(2025.06.26)
1.对账户名内置默认项,避免因为default不生效产生报错
This commit is contained in:
mno
2025-06-26 03:26:38 +08:00
committed by GitHub
parent 2e980f4b08
commit d45ff0630e
3 changed files with 8 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ const DEFAULT_FIGHT_TIMEOUT_SECONDS = 120;
//处理记录文件路径
// 获取子文件夹路径
const accountName = settings.accountName;
const accountName = settings.accountName || "默认账户";
// Windows文件名非法字符列表
const illegalCharacters = /[\\/:*?"<>|]/;
@@ -490,7 +490,7 @@ async function runArtifactsPaths(runRouteA, grindPartyName, useABE) {
let currentTask = 0; // 当前任务计数器
// 执行准备路线的地图追踪文件
// 执行地图追踪文件
for (const fileName of jsonFilePaths) {
const fullPath = fileName;
await fakeLog(fileName, false, true, 0);
@@ -521,6 +521,8 @@ async function runArtifactsPaths(runRouteA, grindPartyName, useABE) {
// 运行普通路线
await runPathGroups(filePathNormal, "普通");
await genshin.tpToStatueOfTheSeven();
// 运行收尾路线
await runPathGroups(filePathEnding, "收尾");