fix(AutoPlan): 调整自动化脚本执行间隔和界面切换逻辑

- 将计划执行间隔从 1 秒增加到 3 秒
- 在界面切换后添加延迟以确保操作稳定
- 在地图打开操作前添加延迟等待
This commit is contained in:
yan
2026-02-27 22:08:19 +08:00
parent cda1a805a5
commit 188ae2279a
2 changed files with 3 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) {
async function autoRunList(autoRunOrderList) {
//计划执行
for (const item of autoRunOrderList) {
await sleep(1000)
await sleep(3000)
if (item.runType === config.user.runTypes[0]) {
await autoDomain(item.autoFight);
} else if (item.runType === config.user.runTypes[1]) {

View File

@@ -49,10 +49,12 @@ async function ocrPhysical(opToMainUi = false,openMap=false,minPhysical=20,isRes
log.debug(`===开始识别原粹树脂===`)
let ms = 1000 // 定义操作延迟时间(毫秒)
if (opToMainUi) {
await sleep(ms)
await toMainUi(); // 切换到主界面
}
if (openMap){
await sleep(ms)
//打开地图界面
await keyPress('M')
}