fix: 等待路径任务完成

This commit is contained in:
秋云
2025-05-25 17:56:42 +08:00
parent c509f29fd7
commit 6368d7d9a8
2 changed files with 2 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ async function AutoFriendshipDev(times, ocrTimeout, fightTimeout, enemyType = "
}),
fightResultPromise // 不捕获超时错误,让它直接抛到外层
]);
await pathTaskPromise; // 等待路径任务完成
cts.cancel();
} catch (error) {
cts.cancel();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "战斗好感:自动好感度&卡时间",
"version": "1.3.0",
"version": "1.3.1",
"tags": [
"好感",
"盗宝团",