
CodexandClaude Opus 4.7
4ab4504425
fix(cut_pic): 修截图路径错位 — pic 目录从 douyin/core/pic 改回项目根 pic
cut_pic 历史 bug:用 os.path.dirname(__file__) + "/pic" 推路径,
误指向 douyin/core/pic/(不存在),实际截图保存在 <project_root>/pic/。
日志中频繁出现"截图文件不存在: .../douyin/core/pic/screenshot.png"。
改为:
- 默认分支用 path_config.get_pic_dir() / get_screenshot_path()
- target 分支用 os.path.join(path_config.get_pic_dir(), target)
补 5 个回归测试覆盖:
- 源码不再含旧的 dirname-based 路径
- path_config 路径解析到 <project_root>/pic
- 截图缺失时 cut_pic 返回 False(重试 3 次后兜底)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 00:47:02 +08:00
..
2026-05-21 19:03:43 +08:00
2026-05-22 22:45:51 +08:00
2026-05-22 22:55:34 +08:00
2026-01-02 23:57:03 +08:00
2026-05-21 19:03:43 +08:00
2026-05-22 22:45:51 +08:00
2026-01-07 19:06:10 +08:00
2026-05-21 09:01:14 +08:00
2026-05-21 10:18:17 +08:00
2026-05-22 19:20:29 +08:00
2026-05-23 00:47:02 +08:00
2026-05-21 00:23:14 +08:00