refactor(physical): 更新工具函数导入并调整操作延迟时间

- 从 ./tool 模块导入 throwError 函数
- 将原粹树脂识别操作的延迟时间从 1000ms 增加到 2000ms
This commit is contained in:
yan
2026-02-15 17:22:35 +08:00
parent dc5fdf9bb6
commit c6d3cf68ed

View File

@@ -1,4 +1,4 @@
import {getJsonPath, toMainUi} from "./tool";
import {getJsonPath, toMainUi,throwError} from "./tool";
//====================================================
const genshinJson = {
width: 1920,//genshin.width,
@@ -47,7 +47,7 @@ async function ocrPhysical(opToMainUi = false,openMap=false,minPhysical=20,isRes
}
}
log.debug(`===开始识别原粹树脂===`)
let ms = 1000 // 定义操作延迟时间(毫秒)
let ms = 2000 // 定义操作延迟时间(毫秒)
if (opToMainUi) {
await toMainUi(); // 切换到主界面
}