From 2af65bfc20a551aa8ffcabb1708a2a918b39c159 Mon Sep 17 00:00:00 2001 From: KarylDAZE <50506792+KarylDAZE@users.noreply.github.com> Date: Tue, 18 Feb 2025 00:49:25 +0800 Subject: [PATCH] fix some bugs (#343) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 设备卡顿时可能无法点到领取委托奖励/探索派遣按钮 * fix: 无法正常选择不同地区凯瑟琳 --- repo/js/AutoCatherine/main.js | 4 ++-- repo/js/AutoCatherine/manifest.json | 2 +- repo/js/Daily Commission/main.js | 4 ++-- repo/js/Daily Commission/manifest.json | 2 +- repo/js/Expedition/main.js | 2 +- repo/js/Expedition/manifest.json | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/repo/js/AutoCatherine/main.js b/repo/js/AutoCatherine/main.js index cb8997d5..b797a2e5 100644 --- a/repo/js/AutoCatherine/main.js +++ b/repo/js/AutoCatherine/main.js @@ -20,10 +20,10 @@ } let filePath; - if (settings.selectway === undefined) + if (settings.selectValue === undefined) filePath = "枫丹凯瑟琳" else - filePath = settings.selectway; + filePath = settings.selectValue; log.info("开始执行路径脚本"); await AutoPath(filePath); diff --git a/repo/js/AutoCatherine/manifest.json b/repo/js/AutoCatherine/manifest.json index e21ab747..0216680d 100644 --- a/repo/js/AutoCatherine/manifest.json +++ b/repo/js/AutoCatherine/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "自动找凯瑟琳", - "version": "1.1", + "version": "1.2", "description": "去找凯瑟琳(基于路径追踪)", "authors": [ { diff --git a/repo/js/Daily Commission/main.js b/repo/js/Daily Commission/main.js index f7b5d6a3..a2258801 100644 --- a/repo/js/Daily Commission/main.js +++ b/repo/js/Daily Commission/main.js @@ -6,8 +6,8 @@ log.info("等待1秒"); click(960, 540); log.info("点击坐标(960, 540)(屏幕中心)"); - await sleep(1000); - log.info("等待1秒"); + await sleep(1500); + log.info("等待1.5秒"); click(1380, 425); log.info("点击坐标(1380, 425)(领取「每日委托」奖励)"); await sleep(1000); diff --git a/repo/js/Daily Commission/manifest.json b/repo/js/Daily Commission/manifest.json index 6f235c65..771f7638 100644 --- a/repo/js/Daily Commission/manifest.json +++ b/repo/js/Daily Commission/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "领取每日委托奖励", - "version": "1.2", + "version": "1.3", "description": "用于领取每日委托奖励", "authors": [ { diff --git a/repo/js/Expedition/main.js b/repo/js/Expedition/main.js index 93e60934..f92dde94 100644 --- a/repo/js/Expedition/main.js +++ b/repo/js/Expedition/main.js @@ -3,7 +3,7 @@ keyPress("F"); await sleep(3000); click(960, 540); - await sleep(1000); + await sleep(1500); click(1400, 580); await sleep(1000); click(160, 1010); diff --git a/repo/js/Expedition/manifest.json b/repo/js/Expedition/manifest.json index 9b6b32e2..5aa55378 100644 --- a/repo/js/Expedition/manifest.json +++ b/repo/js/Expedition/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "重新探索派遣", - "version": "1.0", + "version": "1.1", "description": "用于重新探索派遣", "authors": [ {