修复了已知问题 (#1382)

This commit is contained in:
提瓦特钓鱼玳师
2025-07-22 10:42:35 +08:00
committed by GitHub
parent 997c39d75c
commit a489425a32
2 changed files with 13 additions and 2 deletions

View File

@@ -568,6 +568,9 @@
await keyMouseScript.runFile(base_path_gcm + file_name + ".json"); await keyMouseScript.runFile(base_path_gcm + file_name + ".json");
} }
// 记录钓鱼开始时间
const time_start = Date.now();
// 调用自动钓鱼 // 调用自动钓鱼
await dispatcher.runTask(new SoloTask("AutoFishing", { await dispatcher.runTask(new SoloTask("AutoFishing", {
"fishingTimePolicy": fishing_time_dic[fishing_time]["param"], "fishingTimePolicy": fishing_time_dic[fishing_time]["param"],
@@ -575,8 +578,16 @@
"wholeProcessTimeoutSeconds": time_out_whole "wholeProcessTimeoutSeconds": time_out_whole
})); }));
if (fishing_cd) { // 记录钓鱼结束时间
const time_end = Date.now();
// 钓鱼是否正常结束间隔时间大于5s
const flag = (time_end - time_start) >= 5000;
if (fishing_cd && flag) {
write_archive(file_name, fishing_time, Date.now(), uid); write_archive(file_name, fishing_time, Date.now(), uid);
} else if (fishing_cd && !flag) {
log.warn(`本次钓鱼异常不计算垂钓点CD`);
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"manifest_version": 1, "manifest_version": 1,
"name": "提瓦特自动钓鱼(全流程+自选)", "name": "提瓦特自动钓鱼(全流程+自选)",
"version": "2.2.3", "version": "2.2.4",
"bgi_version": "0.47.0", "bgi_version": "0.47.0",
"description": "支持自动追踪并垂钓bgi支持的全提瓦特垂钓点", "description": "支持自动追踪并垂钓bgi支持的全提瓦特垂钓点",
"authors": [ "authors": [