From 056206f1895ad3dba4939e446b1750980cf311b7 Mon Sep 17 00:00:00 2001 From: Bread Grocery Date: Tue, 9 Dec 2025 17:59:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(js):=20=E5=8D=83=E6=98=9F=E5=A5=87=E5=9F=9F?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AD=98=E6=A1=A3=E6=8C=89=E9=92=AE=E5=81=8F?= =?UTF-8?q?=E5=B7=AE=EF=BC=8C=E5=85=BC=E5=AE=B9=E7=9B=B4=E6=8E=A5=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E7=9A=84=E5=85=B3=E5=8D=A1=20(#2468)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/MiliastraExperiencePlayback/main.js | 13 +++++++++---- repo/js/MiliastraExperiencePlayback/manifest.json | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/repo/js/MiliastraExperiencePlayback/main.js b/repo/js/MiliastraExperiencePlayback/main.js index 624d547f9..0b494138e 100644 --- a/repo/js/MiliastraExperiencePlayback/main.js +++ b/repo/js/MiliastraExperiencePlayback/main.js @@ -807,9 +807,8 @@ var availablePlaybackFiles = () => { }; var playStage = async (playbacks) => { //! 等待进入关卡 - await assertRegionAppearing( - findStageEscBtn, - "等待进入关卡超时", + const ok = await waitForAction( + () => findStageEscBtn() !== void 0 || findBottomBtnText("返回大厅") !== void 0, async () => { findBottomBtnText("开始游戏")?.click(); findBottomBtnText("准备", true)?.click(); @@ -822,6 +821,12 @@ var playStage = async (playbacks) => { }, { maxAttempts: 60 } ); + if (!ok) throw new Error("进入关卡超时"); + //! 直接通关结算的关卡(不会进入关卡) + if (findBottomBtnText("返回大厅")) { + await exitStageToLobby(); + return; + } //! 关闭游戏说明对话框 await assertRegionDisappearing( findCloseDialog, @@ -1026,7 +1031,7 @@ var deleteStageSave = async () => { { maxAttempts: 5 } ); //! 计算勾选框位置并点击 - const [cx, cy] = [(colPos.x * 2 + colPos.width) / 2, stagePos.y + 20]; + const [cx, cy] = [(colPos.x * 2 + colPos.width) / 2, stagePos.y + 40]; await assertRegionAppearing( () => findDeleteExternalSaveChecked(colPos.x), "勾选要删除的局外存档超时", diff --git a/repo/js/MiliastraExperiencePlayback/manifest.json b/repo/js/MiliastraExperiencePlayback/manifest.json index 6896d3985..d159ef780 100644 --- a/repo/js/MiliastraExperiencePlayback/manifest.json +++ b/repo/js/MiliastraExperiencePlayback/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "千星奇域·每周经验刷取(回放通关版)", - "version": "0.1.3", + "version": "0.1.4", "bgi_version": "0.53.0", "description": "千星奇域·每周经验刷取(回放通关版)", "authors": [