日志分析工具 (#2095)

* Update README 的 README.md

* Update index.html
This commit is contained in:
this-Fish
2025-10-07 09:04:54 +08:00
committed by GitHub
parent df8ee685bc
commit 87cb3eb5c3
2 changed files with 25 additions and 2 deletions

View File

@@ -29,6 +29,11 @@
### 基本使用
1. **打开工具** - 访问上述在线地址
2. **上传日志** - 拖放BetterGI日志文件文件名以`better-genshin-impact`开头)
- BetterGI日志文件所在位置如下
- C:\你BGI所安裝的目錄\BetterGI\log
- 或使用BGI打開目錄
- <img width="905" height="599" alt="QQ_1759765939508" src="https://github.com/user-attachments/assets/615087a5-eead-4eb8-8028-4bfe74d9b8ff" />
3. **查看分析** - 工具自动解析并显示统计信息
### 移动设备使用
@@ -221,6 +226,9 @@ A: 确保文件命名格式是`better-genshin-impact日期.log`。
A: 横屏模式可获得更好体验。
## 📋 更新日志
### 20251006
- 增加錯誤&其他訊息
- 当前获取焦点的窗口不是原神,暂停
### 20251003
- ❌ 新增错误检测
@@ -337,4 +345,4 @@ A: 横屏模式可获得更好体验。
---
*最后更新: 2025-09-27*
*适配 BetterGI 0.51.0+ 版本*
*适配 BetterGI 0.51.0+ 版本*

View File

@@ -92,6 +92,9 @@
20251003
增加錯誤&其他訊息
调度器任务出现未预期的异常自动重启bgi
20251006
增加錯誤&其他訊息
当前获取焦点的窗口不是原神,暂停
-->
<!DOCTYPE html>
<html lang="zh-CN">
@@ -3280,6 +3283,18 @@
}
}
//10.5
if (line.includes("当前获取焦点的窗口不是原神,暂停")) {
const message = '窗口焦点异常,暂停';
const type = 'pause-alert';
if (currentTask.specialAlerts.has(message)) {
const existing = currentTask.specialAlerts.get(message);
existing.count++;
} else {
currentTask.specialAlerts.set(message, { type: type, count: 1 });
}
}
// 11. 队伍角色识别失败
if (line.includes("队伍角色识别失败")) {
const message = '队伍角色识别失败';
@@ -5557,4 +5572,4 @@
</script>
</body>
</html>
</html>