fix: 移除v8报错

This commit is contained in:
秋云
2025-07-21 15:20:59 +08:00
committed by GitHub
parent 5c50694e73
commit 3069ea7e94

View File

@@ -754,6 +754,7 @@ async function AutoFriendshipDev(times, ocrTimeout, fightTimeout, enemyType = "
]);
await pathTaskPromise; // 等待路径任务完成
cts.cancel();
await battleTask;
} catch (error) {
cts.cancel();
if (error.message && error.message.includes("战斗超时")) {
@@ -1269,4 +1270,4 @@ async function mora() {
await genshin.returnMainUi();
}
return Number(result);
}
}