Commit Graph

1986 Commits

Author SHA1 Message Date
辉鸭蛋
055f46f4c0 +5.5 avatar 2025-03-27 01:52:56 +08:00
辉鸭蛋
1e288ffda4 0.43.5 2025-03-27 01:32:55 +08:00
辉鸭蛋
892f0f0fa6 ui: 迁移按键绑定页面到设置中 2025-03-27 01:03:19 +08:00
辉鸭蛋
d000981be5 about page #317 2025-03-27 00:15:19 +08:00
辉鸭蛋
55a7dec210 Add About option to settings page (#1348)
---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/babalae/better-genshin-impact?shareId=XXXX-XXXX-XXXX-XXXX).
2025-03-26 22:36:39 +08:00
辉鸭蛋
d3b2f62083 抽离出方法给脚本调用 #1349 2025-03-26 22:32:20 +08:00
辉鸭蛋
917e412d49 5.5 分解功能变成反选 2025-03-26 22:00:27 +08:00
秋云
5a8f38e121 feat: new action exit and relogin and 5.5 fix. (#1349)
* feat: new action exit and relogin and 5.5 fix.

* fix: confirm exit button.
2025-03-26 16:39:09 +08:00
秋云
c79e919d17 fix: 日志分析修改namespace,修改配色,code clean。 (#1346) 2025-03-25 21:01:22 +08:00
Takaranoao
00304d48c4 增加对WaypointForTrack的DisablePickupAround属性支持,可以关闭挖矿动作的周围拾取 (#1322)
* 增加对WaypointForTrack的DisablePickupAround属性支持,可以关闭挖矿动作的周围拾取

* 移动变量解析位置

---------

Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-03-25 00:55:05 +08:00
辉鸭蛋
e5629f1bb4 5.5 map 2025-03-25 00:37:58 +08:00
辉鸭蛋
e77c143f6b Merge branch 'pr/1320'
# Conflicts:
#	BetterGenshinImpact/GameTask/GameTaskManager.cs
2025-03-23 23:35:22 +08:00
辉鸭蛋
0d5d1292c8 code clean 2025-03-23 23:33:40 +08:00
辉鸭蛋
dfbc05599f 秘境走到最后领取奖励超时将会自动重试秘境 #1202 #1270 2025-03-23 22:52:33 +08:00
辉鸭蛋
33e9ebbc91 体力不足时,放弃继续进行自动秘境 #1008 #1134 2025-03-23 22:28:23 +08:00
辉鸭蛋
9bfdfd041e 一些优化
1. 一条龙未选择要刷的秘境时,直接提示
2. 修复独立任务运行时,实时任务仍在运行的问题
2025-03-23 22:04:43 +08:00
秋云
ad3f4c3915 feat: 日志分析界面添加排序逻辑,添加单个任务拾取物显示,添加表头锁定,更换现代化配色方案 (#1341)
* feat: 添加排序逻辑,添加单个任务拾取物显示

* feat: 表头锁定

* feat: 优化样式,修改排序

* feat: 文件过大时会进行保存,并提示保存的路径

* fix: 错误的弹窗

* fix: 修复表头固定

* feat: 修改配色

* fix: 优化显示

* fix: 删除重复分析。

* add: 增加单日分析
2025-03-23 21:12:59 +08:00
niuhuan
f81f628046 飞书通知时带有图片(需要配置app,并且在飞书后台增加上传图片权限) (#1334)
*  feishu image notify

* typo

---------

Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-03-20 22:11:42 +08:00
辉鸭蛋
cbcd9a114e fix NPE 2025-03-19 23:34:51 +08:00
辉鸭蛋
e4163e773c 修复4k自动秘境不生效的问题 2025-03-18 23:49:39 +08:00
FishmanTheMurloc
57d33c4312 又一波钓鱼优化 (#1301)
* GetFishBarRect方法添加更复杂的算法,并为其配备独立的单元测试,和分离难度较大的测试用例(未熟练时两侧出现黄色动态折线的情况);GetFishBoxArea行为去掉拉条框初始位置必须位于屏幕中轴线的条件,并添加其后续Fishing行为的单元测试来验证可行性;EnterFishingMode行为使用结束时间来代替Sleep,并添加整体超时时间;添加一个鱼咬钩的假阳性测试用例仅供娱乐

* 补充GetFishBarRect算法,使通过遗漏的测试"20250314002439020_Fishing_Succeeded.png"

* 拉条增加1秒未检测持续时间以应对瞬间丢失拉条框的情况;新增一个检查提竿结果的行为;新增一个检查开始钓一条鱼的初始状态的方法,以应对行为状态错配的情况;一些行为将Sleep优化为DateTime;修改上述改动对应的单元测试

* 解决合并冲突剩余问题,删掉ImageRegion的Bitmap构造函数重载

* 提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可

* InitForTest

* 和鸭蛋昨夜的提交撞车了。。。抽象了ISystemInto供单元测试实例化Fake类;给BaseAssets类定义了成员字段systemInfo(我想,既然都是图片模板数据集,如此定义是合理的),供继承类AutoFishingAssets使用,并定义了其在单元测试的派生类;添加了一个900p的选取鱼饵测试用例;blackboard改为负责携带AutoFishingAssets,并将其实例化时机挪到独立任务的Start方法中,避免由于TaskContext尚未初始化导致获取到的SystemInfo为空

* 一个特殊的测试用例:抛竿的瞬间、开始检测咬杆时遇到了假阳性

* Revert "InitForTest"

This reverts commit 225e9783a7.

* Revert "提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可"

This reverts commit 610c57263a.

* 为始终没有找到落点的情况添加计数,在第3次时直接退出,并添加此情况的单元测试

---------

Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-03-18 19:51:42 +08:00
起个名字好难
f5dbe30e25 企业微信通知增加时间戳 (#1326)
* 凝光Mining+伐木增加木材

* 企业微信通知增加时间戳
2025-03-18 17:45:55 +08:00
Takaranoao
58aedbf9d6 修复AddTimer方法中的异常处理,保持js脚本兼容性 2025-03-16 20:06:21 +08:00
Takaranoao
2aefabe09c 添加实时任务,不会清理之前的任务 2025-03-16 20:00:25 +08:00
DR-lin-eng
cbe90a7003 优化推送逻辑,加入异步推送策略,降低在多开渠道下的瞬间性能负载。提升推送速度。 (#1315)
Signed-off-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-16 14:30:11 +08:00
禹仔二号
929f4a30b3 添加dingding通知 (#1312)
* 新增图片作为email附件发送功能

* feat(notification): 为 WebhookNotifier 添加 send_to 功能

- 在 WebhookNotifier 类中添加 send_to 属性
- 修改 TransformData 方法,增加 send_to 字段
- 在 NotificationConfig 中添加 webhook_endpoint 和 websocket_endpoint 属性

* refactor(WebhookNotifier): 添加 send_to 属性并调整访问修饰符

* refactor(notification): 重构 WebhookNotifier 并更新 NotificationConfig

- 在 NotificationConfig 中添加 WebhookSendTo 属性
- 重构 WebhookNotifier 构造函数,使用 NotificationConfig 对象进行初始化
- 更新 WebhookNotifier 发送逻辑,使用新的配置属性

* feat: add webhook ui.

* refactor(WebhookNotifier): 重构 TransformData 方法以优化数据结构- 将 notification_data 的内容合并到外层字典,以便于 webhook 接收端获取数据- 新增 event、result、timestamp 等字段,使数据结构

* fix(WebSocketNotifier): 添加消息发送后关闭连接的功能

- 在 SendAsync 方法中添加了 CloseAsync() 调用,确保消息发送后关闭 WebSocket 连接
- 此修改解决了消息发送后未关闭连接的问题,提高了资源利用率和系统稳定性

* fix: implement unified webhook ui

* fix: typos.

* 优化通知前端显示

* feat(notification): 添加钉钉 Webhook 通知支持

- 实现了钉钉 Webhook 通知的发送功能
- 在通知配置中添加了钉钉 Webhook URL 和密钥的设置选项
- 在通知服务中集成了钉钉通知的初始化和注册
- 优化了 WebhookNotifier 类的代码结构

* 新增钉钉通知ui

Signed-off-by: DR-lin-eng <@DR-lin-eng>

* 修正图标

Signed-off-by: DR-lin-eng <@DR-lin-eng>

---------

Signed-off-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: 秋云 <physligl@gmail.com>
Co-authored-by: DR-lin-eng <52230594+DR-lin-eng@users.noreply.github.com>
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-03-16 03:18:02 +08:00
辉鸭蛋
2cb2604de0 Merge remote-tracking branch 'origin/main' 2025-03-16 03:09:25 +08:00
辉鸭蛋
11421cbd63 + MapPuzzleOther 2025-03-16 03:09:15 +08:00
DR-lin-eng
f66c9a2aab 修正变量正确性,修正api端点反代使用 (#1314)
Signed-off-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-16 03:01:53 +08:00
辉鸭蛋
0bbc851ba0 优化合成树脂,不阻塞任务 2025-03-16 01:49:37 +08:00
辉鸭蛋
377326f492 卡齐娜e 2025-03-16 01:29:43 +08:00
DR-lin-eng
8d3acfc668 优化通知前端显示 (#1311)
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-16 01:18:57 +08:00
Takaranoao
a9150054c4 从命令行启动调度器,暂不支持URL(--startGroups 组1 组2 ...) (#1309)
* 从命令行启动调度器,暂不支持URL(--startGroups 组1 组2 ...)

* 修改:log&执行顺序和传入顺序相同
2025-03-16 00:20:33 +08:00
DR-lin-eng
de0a77b655 优化前端显示 (#1310)
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-16 00:19:20 +08:00
Takaranoao
315318e2fe 配置组增加ShellTask配置的UI (#1308)
* Shell抽象成为一个Task,并抽出Config

* 代码格式化

* 格式化代码

* 配置组增加ShellTask配置的UI
2025-03-15 20:35:53 +08:00
Takaranoao
981068b38c draft:执行shell抽成task,并支持配置 (#1306)
* Shell抽象成为一个Task,并抽出Config

* 代码格式化

* 格式化代码
2025-03-15 20:09:59 +08:00
DR-lin-eng
6eb1d33965 新增xxtui通知方法 (#1305)
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-15 20:06:28 +08:00
辉鸭蛋
e1bd3393b8 WGC 去掉HDR处理,增加处理帧率限制 2025-03-15 19:54:53 +08:00
辉鸭蛋
12617e18e9 0.43.3 2025-03-15 13:19:45 +08:00
辉鸭蛋
807288ab90 重构底层截图器,大幅提升截图器耗时 (#1302)
* to mat init

* BitBlt 加锁

* 使用读写锁重构 Windows.Graphics.Capture,删除BGI自己命名的缓存设置

* dwm加锁并返回mat

* 队伍中没有对应元素角色修复日志问题

* 清除所有 DispatcherTimerOperationEnum 内容

* 修复单测的编译错误

* HDR Support

* 清理无用的截图器模式
2025-03-15 13:18:19 +08:00
禹仔二号
f7903f8e9b webhook添加了sendto发送对象,修复了webhook通知ui显示错误问题,修复了websocket服务端错误关闭链接问题 (#1300)
* 新增图片作为email附件发送功能

* feat(notification): 为 WebhookNotifier 添加 send_to 功能

- 在 WebhookNotifier 类中添加 send_to 属性
- 修改 TransformData 方法,增加 send_to 字段
- 在 NotificationConfig 中添加 webhook_endpoint 和 websocket_endpoint 属性

* refactor(WebhookNotifier): 添加 send_to 属性并调整访问修饰符

* refactor(notification): 重构 WebhookNotifier 并更新 NotificationConfig

- 在 NotificationConfig 中添加 WebhookSendTo 属性
- 重构 WebhookNotifier 构造函数,使用 NotificationConfig 对象进行初始化
- 更新 WebhookNotifier 发送逻辑,使用新的配置属性

* feat: add webhook ui.

* refactor(WebhookNotifier): 重构 TransformData 方法以优化数据结构- 将 notification_data 的内容合并到外层字典,以便于 webhook 接收端获取数据- 新增 event、result、timestamp 等字段,使数据结构

* fix(WebSocketNotifier): 添加消息发送后关闭连接的功能

- 在 SendAsync 方法中添加了 CloseAsync() 调用,确保消息发送后关闭 WebSocket 连接
- 此修改解决了消息发送后未关闭连接的问题,提高了资源利用率和系统稳定性

* fix: implement unified webhook ui

* fix: typos.

---------

Co-authored-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: 秋云 <physligl@gmail.com>
2025-03-15 10:33:33 +08:00
DR-lin-eng
45fc9fe7f4 新增图片作为email附件发送功能 (#1298)
Co-authored-by: DR-lin-eng <@DR-lin-eng>
2025-03-15 10:33:13 +08:00
DR-lin-eng
a662791b6b Tgbot推送机器人 (#1296)
* feat: add email and websocket notification

* fix typos.

* refactor(notifiers): 重构邮件和 WebSocket 通知器

- 提升 EmailNotifier 中的 SmtpClient 为类的成员变量,并在构造函数中初始化,优化资源使用
- 改进 WebSocketNotifier 的连接和重连逻辑,提高稳定性
- 优化通知器的错误处理和日志记录,增强可维护性

* Create BarkNotifier.cs

* Update NotificationConfig.cs

* Update NotificationService.cs

* Update CommonSettingsPageViewModel.cs

* Add files via upload

* Add files via upload

* Add files via upload

* Update CommonSettingsPage.xaml

* Delete BetterGenshinImpact/Service/Notifier/BarkNotifier.cs

* Add files via upload

* Update BarkNotifier.cs

* Update NotificationService.cs

* Update CommonSettingsPageViewModel.cs

* Update CommonSettingsPage.xaml

* Delete BetterGenshinImpact/Service/BarkNotifier.cs

* Add files via upload

* Add files via upload

* Add files via upload

* Update CommonSettingsPage.xaml

* fix: 回退部分代码,修复了程序崩溃的错误

* fix: remove api.day.app

* Update CommonSettingsPageViewModel.cs

* Update CommonSettingsPage.xaml

* Update CommonSettingsPage.xaml

* Update CommonSettingsPageViewModel.cs

* Update EmailNotifier.cs

* Update EmailNotifier.cs

* Update BarkNotifier.cs

* 修正并更新前端介绍

* Revert "1"

* 修正公益服务器请求兼容性

* Revert "Revert "1""

This reverts commit 8c6effb1

* 新增tg推送但是有发送问题?(疑似我的电脑问题,稍后解决)

Signed-off-by: DR-lin-eng <@DR-lin-eng>

* feat: Telegram notification and ui.

* 修正tgbot推送,修正变量

Signed-off-by: DR-lin-eng <@DR-lin-eng>

---------

Signed-off-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: 秋云 <physligl@gmail.com>
Co-authored-by: 禹仔二号 <87601913+wy3057@users.noreply.github.com>
Co-authored-by: yuzai <3020834774@qq.com>
Co-authored-by: DR-lin-eng <@DR-lin-eng>
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
2025-03-14 19:39:16 +08:00
秋云
76445ab19d fix: 修复换队时爬七天神像导致换队失败的问题 (#1295) 2025-03-14 11:43:58 +08:00
起个名字好难
3df45ea6ed 统计增加卡死和异常 (#1293) 2025-03-14 09:50:24 +08:00
辉鸭蛋
616293432d Update README.md 2025-03-14 00:39:59 +08:00
辉鸭蛋
7250ef111d Update README.md 2025-03-14 00:37:23 +08:00
辉鸭蛋
19fb0022c1 Merge remote-tracking branch 'origin/main' 2025-03-14 00:26:45 +08:00
辉鸭蛋
f284a5331a 0.43.2 2025-03-14 00:23:27 +08:00
FishmanTheMurloc
29a2c0069e bug fix:拉条过程中内存没有及时释放 (#1266)
* bug fix:拉条过程中内存没有及时释放

* 新增LiftAndHold行为用于举竿、检测预抛竿时鼠标左键是否被意外松开、终止任务;抛竿开始后5秒内如从未找到落点,则返回失败,并配有单元测试;添加抛竿时无鱼饵适用鱼的单元测试;调整变量名

* 新增一个钓鱼昼夜设置枚举DontChange及其逻辑(枚举值为3),表示不调整时间直接开钓

* 针对可能是游戏中的雾气/滤镜/小黄鸭之类不明原因干扰了钓鱼拉条框的识别,修改了CV算法,使其不严格按照黄色(255,255,192)找矩形,而是按一定HSV范围寻找,并加强过滤;添加上述不明原因案例的测试用例

* 将MySimpleParallel改造为支持两个以上子行为;将“检查抛竿结果”行为合并到“下杆中”并行节点,以去除检查的等待时间,由此希望能应对鱼过快上钩的情况
2025-03-14 00:17:37 +08:00