Your Name
|
6279b129cb
|
scan wifi adb random port across subnets
|
2026-06-08 18:17:29 +08:00 |
|
Your Name
|
207cf0eadb
|
improve fudai ocr debug captures
|
2026-06-05 15:50:00 +08:00 |
|
Your Name
|
62c84939ee
|
add fudai detail and reservation verdict markers
|
2026-06-05 15:46:43 +08:00 |
|
Your Name
|
cd7615db3c
|
limit wifi adb reconnect to lightweight ports
|
2026-06-05 15:45:37 +08:00 |
|
Your Name
|
e3bf99149d
|
wire webui region coordinate edit toggle
|
2026-06-05 15:45:20 +08:00 |
|
Your Name
|
9b03556b7d
|
expose fudai detail thresholds and regions
|
2026-06-05 15:36:10 +08:00 |
|
Your Name
|
37a2f94486
|
detect fudai detail body and dacheng task count
|
2026-06-04 12:27:14 +08:00 |
|
Your Name
|
5e2ca0587b
|
preserve simple and detail logs
|
2026-06-04 12:05:38 +08:00 |
|
Your Name
|
f07fbb305b
|
fix false fudai detail pixel detection
|
2026-06-04 11:51:12 +08:00 |
|
Your Name
|
1d564000ca
|
add detail OCR performance diagnostics
|
2026-06-04 11:39:29 +08:00 |
|
Your Name
|
dc6ae7d1e4
|
fix task count digit detection
|
2026-06-04 11:15:45 +08:00 |
|
Your Name
|
0c77bf9e0e
|
Keep debug capture history for px and overview
|
2026-06-03 22:46:53 +08:00 |
|
Your Name
|
ca7d64d54b
|
test: isolate region overrides in ui checks
|
2026-06-03 20:39:47 +08:00 |
|
Your Name
|
4797fa046e
|
feat: expose fudai region coordinates in gui
|
2026-06-03 20:29:10 +08:00 |
|
Your Name
|
bcc4d1151f
|
修复WiFi ADB随机端口扫描
|
2026-06-03 17:52:02 +08:00 |
|
Your Name
|
daf0c49288
|
统一日志详细度入口
|
2026-06-03 17:39:53 +08:00 |
|
Your Name
|
198a30dce1
|
完善新UI适配与日志简化
|
2026-06-03 12:40:06 +08:00 |
|
Your Name
|
71a9f4a25f
|
精简简单模式日志输出
|
2026-06-03 12:15:47 +08:00 |
|
Your Name
|
40f9812ab1
|
收口像素检测调试图输出
|
2026-06-03 12:05:27 +08:00 |
|
Your Name
|
3bcb5cb259
|
优化详情调试标注与截图复用
|
2026-06-03 11:36:47 +08:00 |
|
Your Name
|
42aa0f214d
|
修正调试图标注对齐
|
2026-06-03 10:47:39 +08:00 |
|
Your Name
|
24b58a8c6d
|
优化WiFi ADB快速扫描
|
2026-06-03 08:50:43 +08:00 |
|
Your Name
|
e51d37890a
|
精简像素调试图与日志
|
2026-06-03 02:11:45 +08:00 |
|
Your Name
|
098083a354
|
修正福袋详情调试图与图标检测
|
2026-06-03 01:34:30 +08:00 |
|
Your Name
|
1d37d57c90
|
修复福袋详情OCR v2与调试日志
|
2026-06-03 01:22:13 +08:00 |
|
Your Name
|
2c6f024a24
|
test: 增补回顶保留映射与同房三连映射回归
|
2026-06-01 21:18:28 +08:00 |
|
Your Name
|
02a4dc625a
|
test: 增加映射合并与同房三连回顶回归用例
|
2026-06-01 21:16:42 +08:00 |
|
Your Name
|
147892a144
|
fix: 根因修复同房三连与映射合并,避免双切房
|
2026-06-01 21:13:58 +08:00 |
|
Your Name
|
05b9d17951
|
fix: remove recursive run_once reentry after desktop recovery
|
2026-06-01 20:58:24 +08:00 |
|
Your Name
|
36e374ef67
|
refactor: split large modules and harden live-room fudai flow
|
2026-06-01 18:39:44 +08:00 |
|
Your Name
|
c2010084cf
|
fix(fudai): root-fix countdown minute misread with full-line mm:ss priority
|
2026-06-01 16:37:11 +08:00 |
|
Your Name
|
d696f2c974
|
fix(countdown): harden minute OCR selection and normalization
|
2026-06-01 15:15:01 +08:00 |
|
Your Name
|
93d950e78f
|
fix: 根治倒计时分钟误识别并统一候选解析策略
|
2026-06-01 14:48:36 +08:00 |
|
Your Name
|
5a51c951a2
|
fix(fudai): treat notice text as attended and harden attend/log parsing
|
2026-06-01 12:33:33 +08:00 |
|
Your Name
|
61dfc1c15c
|
fix: keep parallel OCR stable and add unknown-button fallback
|
2026-06-01 12:18:21 +08:00 |
|
Your Name
|
a68307d7fd
|
fix(wifi-adb): restore hi-port fallback path and harden reconnect/import edge cases
|
2026-06-01 11:05:47 +08:00 |
|
Your Name
|
e33b42597c
|
fix(wifi-adb): force openscreen mdns backend for scan discovery
|
2026-06-01 09:49:32 +08:00 |
|
Your Name
|
f76232f2fc
|
fix(wifi-adb): improve scan with multi-subnet fallback and mdns discovery
|
2026-06-01 09:40:44 +08:00 |
|
Your Name
|
de21921d03
|
refactor(paths): remove cwd-based mapping path fallbacks
|
2026-06-01 09:15:41 +08:00 |
|
Your Name
|
37f736c158
|
fix(webgui): harden config bool parsing and action error handling
|
2026-06-01 09:07:03 +08:00 |
|
 CodexandClaude Sonnet 4.5
|
96fdc96f24
|
refactor(cleanup): 移除剩余死代码模块
- 删除 douyin/utils/douyin_text_utils.py 及其测试
- 移除 performance_tracker.py 中未使用的 track_function 方法
- 移除 param_usage_tracer.py 中未使用的 stop_tracing / is_enabled
- 清理 bin/run_cli.py 和 tests/test_imports.py 中的残留引用
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-05-23 21:58:41 +08:00 |
|
 CodexandClaude Sonnet 4.5
|
d19d5bfc56
|
refactor(cleanup): 移除 logging 模块死代码
- unified_logger.py: 删除 5 个从未使用的装饰器/函数
- internal_loggers.py: 删除 3 个未使用方法和工厂函数
- action_logger.py: 删除 3 个未使用方法
- log_formatter.py: 删除 6 个未使用格式化函数(保留 GUI 依赖的 4 个)
- 同步更新 __init__.py 和测试文件
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-05-23 21:04:35 +08:00 |
|
 CodexandClaude Sonnet 4.5
|
df69c6ab67
|
fix(countdown): 修复长倒计时被截断到15分钟的bug
check_countdown 中 >900s 的上限过于激进,将实际的58分钟福袋截断到14:50。
改为 >3600s(1小时)上限,兼容抖音的60分钟福袋。
同时修复 _extract_digits 取后N位的问题,改为取前N位,
避免当子图意外捕获额外数字时(如 "1458")被误提取为 "58"。
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-05-23 19:22:20 +08:00 |
|
 CodexandClaude Opus 4.7
|
fe97e82104
|
fix(gui): 实时查看器/状态 Tab 的耗时解析支持 ms 单位
问题:实际 actions.log 写的是 `耗时=10.00ms`(毫秒),但 _parse_minimal
和 parse_action_duration 的正则只匹配 `s`,导致:
- 实时查看弹窗永远显示"暂无动作"
- 实时状态 Tab 同样空白
同时存在的副 bug:兜底正则在整行匹配,前缀里的 `192.168.5.2:5555` /
日志时间戳 `2026-05-21` 都可能被误识别成耗时。
修复:
- 解析窗口限定到 line.find("耗时") 之后的子串 (tail)
- 优先匹配 ms(顺序很重要:\s*s 会先吃掉 "10ms" 的 m)
- s 单位加 (?![a-zA-Z]) 负向后顾,避免匹配 "ms" / "second" 之类
- 同步修复 gui_app.py:3685 的 parse_action_duration(实时状态 Tab)
测试:
- _parse_minimal 加 4 个新测试覆盖 ms / 整数 ms / 优先级 / 前缀干扰
- 全量 1426 passed (+5)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 09:08:58 +08:00 |
|
 CodexandClaude Opus 4.7
|
9f330572cc
|
test(gui): 加 gui_app.main() 启动冒烟测试
背景:d759921 抽 _open_realtime_viewer_impl 时误删 16 行搜索工具栏定义,
gui_app 启动时报 NameError,但 pytest 1421 passed 没抓住——def main()
里的 NameError 只有真正调用 main() 才触发,单纯 import 不会执行函数体。
新测试通过 patch tk.Misc.mainloop 让 GUI 创建完所有控件后立刻 quit,
覆盖 def main() 内部所有顶层语句,能抓住 NameError / AttributeError /
ImportError 这类启动期失败。
已验证:临时 revert ca6c2e4 后该测试 FAIL(精确指向 L3994 NameError),
恢复 ca6c2e4 后 PASS。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 08:59:30 +08:00 |
|
 CodexandClaude Opus 4.7
|
7884132743
|
test(pkg): 补充 _pkg 子模块单元测试
覆盖 screenshot_manager.save_files / reservation_logic._common /
logging_wrapper_pkg._common 共 14 个测试。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 07:05:23 +08:00 |
|
 CodexandClaude Opus 4.7
|
d759921442
|
refactor(gui): 抽 _open_realtime_viewer_impl 到 components/realtime_viewer (5539 → 5370)
gui_app.py 嵌套函数 _open_realtime_viewer_impl 是 170 行的"实时查看"对话框:
弹 Toplevel 显示当前 pic/screenshot.png + 列表展示 actions.log 中含"耗时"的
最近 80 行,每秒刷新。
抽到 gui/components/realtime_viewer.py:
- open_realtime_viewer(root) 主入口
- _tail_read(path, max_bytes) 末尾字节读取
- _parse_minimal(line) 提取 (动作名, 耗时) 二元组
- 全局单例 _active_win 替代原嵌套 def 的属性式 _win
gui_app.py 中嵌套 def 缩成 4 行委托。
新增 13 个单元测试覆盖 _tail_read 4 种情况 + _parse_minimal 8 种格式。
1421 passed (+13)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 03:47:58 +08:00 |
|
 CodexandClaude Opus 4.7
|
fb35670032
|
refactor(gui): 抽 ThreadSafeLogWriter 到 components/log_writer (5649 → 5537)
gui_app.py 的 ThreadSafeLogWriter 类(109 行)是自包含的日志文件写入器:
threading.Lock 保护、按日期分割、配置开关、PermissionError/Exception 兜底。
抽到 gui/components/log_writer.py,原 gui_app 中的 109 行类定义 + 1 行实例化
替换为 3 行导入 + 实例化。read_config 通过 staticmethod _read_config 延迟导入,
避免循环依赖。
新增 15 个单元测试覆盖:
- __init__:默认 log_dir / 配置开关 / dated_logs / 相对路径解析 / 配置异常兜底
- write:正常写 / 禁用跳过 / 空行跳过 / 时间戳前缀 / 已格式化行原样写
- 100 线程 × 10 行的并发安全测试(确认 1000 行无丢失)
- PermissionError / 通用异常下不抛 + warn 一次
1408 passed (+15)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 03:29:25 +08:00 |
|
 CodexandClaude Opus 4.7
|
230c0d4049
|
refactor(gui): 抽 refresh_stats 字符串格式化到 stats_formatter (6339 → 5634)
gui_app.py 的 refresh_stats 闭包是 705 行纯字符串构建:把 runner.get_stats()
的字典格式化成多个分段(基本信息/快速汇总/核心统计/跳过/OCR/详情/福袋查找/
性能/粉丝团/切换/预约/错误/价值/最近福袋/中奖记录)。
抽到 gui/components/stats_formatter.py:
- format_stats(stats: Dict) -> List[str] 主入口
- 14 个 _append_* 子段构建器(每段一个,按需追加)
- _section_lines(title, body) 标题包装
闭包改为 16 行委托:调 format_stats + 写入 ScrolledText。
新增 32 个单元测试覆盖:
- 空 dict / 缺字段时的兜底
- 基本运行状态(uptime / pid / exit_code 各种格式)
- 各分段的"有数据 / 无数据"条件
- 关键率计算(打开成功率/点击率/参与成功率/中奖率/跳过率/错误频率)
- 边界情况(attend_ok > clicks 检测到已参与,结果未开奖警告,wins 截断到 10 条)
1393 passed (+32)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 03:23:53 +08:00 |
|
 CodexandClaude Opus 4.7
|
a864f6e23a
|
refactor(fudai): 抽 __init__ 配置默认值到 init_helpers (1559 → 1323)
fudai_analyse.__init__ L119-354 是 236 行配置字段默认值 + 运行时状态初始化:
- ~80 个 self.X = <default_value> 配置字段
- 30+ 个运行时状态字段
- _reservations_state_path 解析 + room_pos_map 旧文件清理
抽到 douyin/core/fudai_modules/init_helpers.py:
- apply_fudai_defaults(self): 主入口
- _apply_yanghao_defaults(self): 推荐页养号子段
- _resolve_reservations_state_path(self): 解析路径,path_config 失败时
兜底用 ".." 回退(不再用 dirname(__file__) + "state")
- _cleanup_old_room_pos_map_files(self): 清理上次运行的 JSON/CSV/MD 导出
__init__ 中保留:
- L57-117 设备/分辨率/operation/日志系统初始化(依赖较深,难抽)
- L356-357 self.load_config()
行为完全保留:所有字段值、解析顺序、异常兜底全部不变。
test_runtime_path_anchors.test_reservations_state_path_uses_path_config 已更新
为同时检查 douyin_fudai.py 和 init_helpers.py。
1361 passed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 03:13:46 +08:00 |
|