KenanZhu
bf93cc2cbc
style(*): 将中文逗号替换为英文逗号
2026-03-20 08:59:09 +08:00
KenanZhu
02463f087e
feat(MsgBase, gui, operators): 增强日志输出功能
...
- 为 _showTrace 方法添加 no_log 参数,支持控制日志写入
- 在主窗口各关键操作点添加日志输出
- 优化错误信息输出策略,分离 trace 和 log 输出
- 改进配置目录初始化过程的日志记录
2026-03-18 12:46:37 +08:00
KenanZhu
160d6a2428
refactor(operators): 为 _showTrace 方法添加合适的 TraceLevel 参数
2026-03-18 11:02:52 +08:00
KenanZhu
2f5680c547
fix(LibTimeSelector) style(LibReserve): 修复时间转换方法 _timeToMins 并重命名为 _timeStrToMins
...
- 之前的实现未严格限制传入参数为整形,导致在转换时间字符串时可能出现类型错误。
- 重命名为 _timeStrToMins 以明确表示该方法仅用于时间字符串转换。并更新相关调用。
- 重命名 __selectSeatTime 中的冗长局部变量,便于理解和维护。
- 删除多余的时间格式转换嗲用
2026-03-17 20:00:57 +08:00
KenanZhu
7df6a9157d
refactor(LibReserve, LibRenew): 提取时间选择公共逻辑到 LibTimeSelector 基类
...
将 LibReserve 和 LibRenew 中重复的时间转换和选择逻辑提取到
LibTimeSelector 基类,消除代码重复,提升可维护性。
主要变更:
- 新增 LibTimeSelector 基类,提供时间转换和最佳时间选择算法
- LibReserve 和 LibRenew 继承 LibTimeSelector,移除重复代码
- 拆分过长方法,提升代码可读性
- 修正方法命名 __selectNearstTime -> __selectNearestTime
同时修复续约功能业务逻辑漏洞:
- 新增续约时间上限校验,防止续约时间超过图书馆闭馆时间(23:30)
2026-03-14 14:48:35 +08:00
KenanZhu
155b3fe3ca
style(LibRenew): 删除多余注释,修改部分注释的格式
2026-02-19 17:09:15 +08:00
KenanZhu
79e2128fca
style(operators.*): 显式指定浏览器驱动类型为 WebDriver
2026-01-16 23:21:36 +08:00
KenanZhu
128c8e7a83
style(*): 移除未使用的 import 语句
2026-01-16 22:37:26 +08:00
KenanZhu
107ed41b58
chore(*): 更新 license 和版权信息为 2025 - 2026 年
2026-01-09 14:00:25 +08:00
KenanZhu
05c9d433f4
hotfix(LibRenew): fix the serious bug that the renew process always failed
...
in this hotfix, we fix the renew bug because we
do not refresh the page after renew the seat,
this will make the subsequent operators, such as
logout ... unable to in progress.
2025-11-30 18:42:20 +08:00
KenanZhu
842fb434f4
feat(AutoLib): new feature 'Auto Renew'
2025-11-28 15:03:51 +08:00
KenanZhu
9a925fecb6
fix(operators): fix some type hint, and add imports for LibRenew
2025-11-28 14:53:08 +08:00
KenanZhu
c2d53a8b78
chore(*): refactor the project structure
2025-11-25 08:48:18 +08:00