fix: 等待路径任务完成
This commit is contained in:
@@ -184,6 +184,7 @@ async function AutoFriendshipDev(times, ocrTimeout, fightTimeout, enemyType = "
|
|||||||
}),
|
}),
|
||||||
fightResultPromise // 不捕获超时错误,让它直接抛到外层
|
fightResultPromise // 不捕获超时错误,让它直接抛到外层
|
||||||
]);
|
]);
|
||||||
|
await pathTaskPromise; // 等待路径任务完成
|
||||||
cts.cancel();
|
cts.cancel();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
cts.cancel();
|
cts.cancel();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 1,
|
"manifest_version": 1,
|
||||||
"name": "战斗好感:自动好感度&卡时间",
|
"name": "战斗好感:自动好感度&卡时间",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"tags": [
|
"tags": [
|
||||||
"好感",
|
"好感",
|
||||||
"盗宝团",
|
"盗宝团",
|
||||||
|
|||||||
Reference in New Issue
Block a user