mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-27 05:19:51 +08:00
refactor(physical): 更新工具函数导入并调整操作延迟时间
- 从 ./tool 模块导入 throwError 函数 - 将原粹树脂识别操作的延迟时间从 1000ms 增加到 2000ms
This commit is contained in:
@@ -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(); // 切换到主界面
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user