Commit Graph
253 Commits
Author SHA1 Message Date
Codex 299ced21c8 精修 WebUI 第二轮:数据表/表格/图表/预约卡
- workspaceHeader 加左侧 2px primary accent + uppercase eyebrow
- stats 卡片:tabular-nums + uppercase 标签 + 字号统一 text-xl
- table:sticky 表头 uppercase + zebra 奇偶行 + hover 高亮 + mono 列灰度
- timeline 图:4 等分水平网格虚线 + Y 轴 0/mid/max 三档 mono 标签
- 空状态:.hint 单独使用时升级为虚线圆框居中占位 + 圆形 dot
- 预约卡片:reservationIndex 加圆点 + reservationValue 改 uppercase pill;hover 去 transform,纯 box-shadow 反馈
- cache-bust v4 → v5
2026-05-21 09:29:38 +08:00
Codex b7d7f61a27 精修 WebUI:质感细节与组件统一
- 引入设计 token:space-1..8 / radius-sm..xl / text-xs..2xl
- header:替换品牌图标为 SVG(耳机+音符)+ 顶部 hairline;title 用 tabular 字体可读性更好
- 按钮 primary/danger 加 inner highlight + 渐变深浅 + 三态质感(idle/hover/active)
- 侧边导航 tabBtn:active 改为左侧 2px 垂直指示条带 scaleY 动画
- 表单:select 加自绘下拉箭头;focus 双层 ring(border + 半透明)
- check 项勾选后亮 primary-soft 背景
- 状态卡 overviewCard:左侧 2px accent 条 + tabular-nums 数字 + 标签 uppercase
- statusRunning 状态点改为外扩光环动画(更内敛)
- 图表:barFill 加细微渐变;hover 行高亮其他行半透明;tabular-nums
- 全局滚动条:10px 细圆角,仅 thumb 显示
- preview 占位:斜纹背景 + 单方向扫描线动画
- cache-bust v3 → v4
2026-05-21 09:29:37 +08:00
zzz 6e8e5d1102 Merge pull request 'claude/wonderful-brattain-d1cfe0' (#2) from claude/wonderful-brattain-d1cfe0 into main
Reviewed-on: simgreek/douyi_guaji_main#2
2026-05-21 08:49:06 +08:00
CodexandClaude Opus 4.5 8fe7ff0585 refactor: 根目录核心模块迁移到 douyin/core/ 和 douyin/logging/
将 4 个根目录核心模块迁移到合理位置:
- path_config.py    -> douyin/core/path_config.py
- version.py        -> douyin/core/version.py
- Underlying_Operations.py -> douyin/core/underlying_operations.py
- unified_logger.py -> douyin/logging/unified_logger.py

配套更新所有 import:
- path_config: 41 处 import 改为 douyin.core.path_config
- version: 4 处改为 douyin.core.version
- unified_logger: 5 处改为 douyin.logging.unified_logger
- Underlying_Operations: 14 处改为 douyin.core.underlying_operations

修复 path_config.PROJECT_ROOT 计算(向上 2 级而非当前目录)。

验证:python -m compileall 全项目通过。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-21 00:23:14 +08:00
CodexandClaude Opus 4.5 e3e399da70 refactor: 入口脚本迁移到 bin/
将 4 个入口脚本从根目录迁移到 bin/:
- run_cli.py
- gui_app.py
- webgui_launcher.py
- manage_logs.py

配套修改:
- 修复 bin/*.py 内部 ROOT_DIR 计算(parent.parent)
- bin/run_cli.py 在 sys.path 加入项目根,shim 加载逻辑保持不变
- bin/manage_logs.py 在 sys.path 加入项目根
- path_config.get_run_cli_path() 返回 bin/run_cli.py

启动方式变化:
- 原: python run_cli.py / python gui_app.py
- 新: python bin/run_cli.py / python bin/gui_app.py

GUI 内部通过 path_config.get_run_cli_path() 调用,自动适配。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-21 00:23:14 +08:00
zzz 309b629e7c Merge branch 'main' into claude/wonderful-brattain-d1cfe0 2026-05-20 23:57:39 +08:00
CodexandClaude Opus 4.5 77e797ae1c chore: 清理根目录散落文件
- 删除 restore_screenshot_service.py:一次性恢复脚本,已完成使命
- 取消追踪 .stats_test_cache.json、.web_stats_cache.json:
  运行时缓存文件,.gitignore 已忽略,本次清除历史误提交

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:33:13 +08:00
CodexandClaude Opus 4.5 a19fa35a0f chore: 整理 tools/ 47 个脚本按功能分组
- diagnostics/ 11 个:环境/配置/依赖诊断
- logs/ 7 个:日志分析与查看
- coords/ 6 个:坐标拾取与区域选择
- cleanup/ 3 个:代码清理工具
- adb/ 2 个:ADB / 输入法相关
- windows/ 4 个:Windows 系统修复(备份)
- dev/ 9 个:开发辅助 / 运行时探测

并更新 tools/README.md 描述新结构。
删除 3 个明显的临时调试脚本 (_dump_lines.py / tmp_*.py)。

tools/ 不被业务代码 import,分组仅为人工浏览方便。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:25:28 +08:00
CodexandClaude Opus 4.5 a2d6bd2cc3 chore: 归档过时迭代报告到 docs/archive/
将 15 份历史性的修复/审查/优化迭代报告归档:
- *_REPORT.md / *_FIXES.md(一次性修复总结)
- 多线程优化/日志系统优化等迭代说明(已被新版替代)
- 真机测试报告(具体某次测试的快照)

保留在 docs/ 下的是仍然有用的当前文档:
使用指南、技术文档、规范、功能说明等。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:14:30 +08:00
CodexandClaude Opus 4.5 31d4102696 chore: 删除 docs/reports 中的临时文件
config.json.bak / git_lsremote_trace.txt / log_filter_result.txt /
time_analysis_result.txt 都是运行/调试产生的临时输出,
已在 .gitignore 中忽略,本次将历史误提交的版本一并清理。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:12:50 +08:00
CodexandClaude Opus 4.5 da0c4ca3dc chore: 取消追踪运行时状态文件 .web_gui_pid
.gitignore 已忽略此文件,但历史上误提交了一次。
此处仅取消 git 追踪,本地文件保留。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:11:40 +08:00
Codex 3ed352ef0e 重构 Web GUI 视觉为深浅双主题大厂风
- 引入 Linear/Vercel 风设计语言:单色 primary、克制阴影、Inter 字体
- 新增深/浅双主题 token 与右上角切换钮,支持系统跟随 + localStorage 记忆
- 字重整体降一档(760→600,720→550,650→500),更轻盈现代
- sectionTitle 改为 11px uppercase 灰色辅助文字 + 细分割线
- 删除 sheen / scan / overviewCard 渐变条等装饰动画与彩色装饰层
- 图表配色单色化:timeline 线统一用 primary + opacity 区分系列
- styles.css/app.js cache-bust 版本升至 theme-v3
2026-05-20 23:09:20 +08:00
zzz 1a0afe86a1 Merge pull request 'claude/wonderful-brattain-d1cfe0' (#1) from claude/wonderful-brattain-d1cfe0 into main
Reviewed-on: simgreek/douyi_guaji_main#1
2026-05-20 23:07:29 +08:00
CodexandClaude Opus 4.5 92718a7cb4 fix: douyin_fudai 关键路径异常添加日志
- run_id 生成失败时记录 logging.debug
- 日志系统初始化失败时记录 logging.warning,便于排查

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:03:27 +08:00
CodexandClaude Opus 4.5 9bd10277b2 fix: 前端 apiPost 添加 CSRF token
配合后端 /api/csrf-token 接口获取并自动附加 X-CSRF-Token 请求头,
避免 CSRF 防护启用后所有 POST 请求被 403 拒绝。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:01:31 +08:00
CodexandClaude Opus 4.5 92753c51a5 chore: 删除已废弃的 deleted_tests_backup 目录
22 个备份测试文件已废弃多月,从代码库中移除以减少干扰。
如需历史,仍可从 git 历史中恢复。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:56:51 +08:00
CodexandClaude Opus 4.5 6b22939c7e fix: 改善 fudai_detail_validator 异常处理
- 收紧 except 类型为 ValueError/TypeError
- 添加 logging.debug 替代静默 pass,便于排查 OCR 识别错误

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:54:44 +08:00
CodexandClaude Opus 4.5 68a2ab73ba refactor: 抽取倒计时解析工具到 time_utils 模块
将散落在三处的重复 _parse_mm_ss / _extract_2digits 实现集中到
douyin/utils/time_utils.py,便于复用与单元测试。

不修改既有调用点(保持向后兼容),后续可按需迁移。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:54:01 +08:00
CodexandClaude Opus 4.5 61d72b2b8d perf: 优化 np.array 为 np.asarray 减少内存拷贝
np.array() 默认会复制数据,而 np.asarray() 只在必要时才复制。
对于只读用途,asarray() 性能更好。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:50:33 +08:00
CodexandClaude Opus 4.5 1dea80d5be fix: 截图服务添加 atexit 优雅关闭
ScreenshotService 在进程退出时通过 atexit 钩子停止后台线程,
避免 daemon 线程被强杀导致的资源泄漏。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:48:43 +08:00
CodexandClaude Opus 4.5 5ce314b41c chore: 清理死文件和裸 except
- 删除空文件 sitecustomize.py
- 修复 tools/simple_region_selector.py 中的裸 except:

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:46:02 +08:00
CodexandClaude Opus 4.5 84e8d0c46d fix: Web GUI 安全加固
1. PID 操作添加专用锁保护,防止 force_stop 并发问题
2. POST 接口添加 CSRF token 验证
3. 新增 /api/csrf-token 接口供前端获取 token

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:39:47 +08:00
CodexandClaude Opus 4.5 ff8de2c9b8 fix: 修复7个Critical并发安全和异常处理问题
1. OCR 单例无锁保护 - 添加 _ocr_lock 和 _ocr_coords_lock
2. ADB 文本广播命令注入 - 使用 shlex.quote() 转义
3. 截图文件 Race Condition - 添加 PNG 完整性验证
4. JSON 持久化无锁 - 添加文件级锁字典
5. 双检查锁不完整 - 修复 _ensure_debug_save_worker_started
6. Daemon 线程无 Graceful Shutdown - 添加 shutdown event 和 atexit
7. 关键路径异常处理 - 添加 logging.debug 替代 pass

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 22:25:35 +08:00
Codex 1fdec7a548 整理项目文件分类 2026-05-20 20:49:19 +08:00
Codex 38e2b399d4 增加Web和桌面参数自动同步清单 2026-05-20 20:35:58 +08:00
Codex caa24ea8ca 保持Web端和桌面端参数同步 2026-05-20 20:32:23 +08:00
Codex 6c73f6e414 优化Web端日志导航与GUI配置 2026-05-20 20:23:32 +08:00
Codex 674ede76ee Add project git automation instructions 2026-05-20 19:24:27 +08:00
Codex 13b1f2150c Fix launcher paths and remove local hardcoding 2026-05-20 19:18:34 +08:00
Codex e7a7d3f888 Fix device selection and adb command safety 2026-05-20 18:43:58 +08:00
Your Name 89128deb0f Complete missing Web GUI controls 2026-05-20 17:54:40 +08:00
Your Name 8368f1f3b7 Fix issues from code review
- Fix project root path in test_webgui.py
- Remove debug console.log from loadConfig in app.js
- Remove duplicate screenshot button event listener in app.js
- Fix redundant directory changes in startup batch script
- Add trailing newlines to files
2026-05-20 09:00:54 +08:00
Your Name 7eb72bd00e Update config, web GUI, and add debug features 2026-05-20 08:12:06 +08:00
Your Name 4492b77d67 优化:统一代码风格,调整字典定义和字符串格式,增强可读性 2026-02-01 12:15:06 +08:00
Your Name 3b2aab67bd 优化:启用杨号功能并更新PaddleOCR和PaddlePaddle版本要求;新增OCR引擎性能对比测试脚本 2026-02-01 12:14:20 +08:00
Your Name 6933c0b4fe 优化:调整参与按钮区域坐标,修正按钮覆盖范围 2026-01-25 20:50:16 +08:00
Your Name 272dcab91d 优化:调整参与按钮区域坐标,增强对部分机型底部按钮的覆盖;更新调试截图逻辑以使用新坐标 2026-01-25 16:58:15 +08:00
Your Name f97c83f6f0 Merge branch 'main' of https://github.com/Zzzil/douyin_guaji-main 2026-01-25 15:35:19 +08:00
Your Name d057c1d84e 优化:调整WiFi ADB连接逻辑,支持ip:port格式;改进USB设备选择逻辑,增强连接稳定性 2026-01-25 15:33:32 +08:00
Your Name 4903e50ff2 优化:调整代码格式,增强可读性 2026-01-23 15:29:09 +08:00
Your Name 68e3f2ff34 优化:调整配置文件中的重置动作和点击等待时间,提升代码逻辑清晰度;更新福袋分析逻辑以改善预约处理流程 2026-01-22 13:40:34 +08:00
Your Name b9b21d472f 优化:更新配置文件中的重置动作和点击等待时间;调整映射表生成逻辑,提升代码可读性 2026-01-20 12:16:19 +08:00
Your Name 3b4293365d 优化:调整日志保留天数和压缩设置,增强日志管理;添加预约记录检查逻辑,避免直播间循环 2026-01-18 15:20:21 +08:00
Your Name 191edf9f28 docs: V4.4 (2026-01-18) — add shopping_redpacket threshold GUI/config; document OCR recheck, mapping write-to-disk, reservation backtrack fixes, attend retry fix, swipe handler fix 2026-01-18 14:49:21 +08:00
Your Name c79c50ffe4 优化:添加购物红包背景红色占比阈值配置,增强红包弹窗检测功能 2026-01-18 14:38:38 +08:00
Your Name d31a3ffee3 优化:调整basic_join_decision函数中的失败计数逻辑,提升代码可读性 2026-01-18 14:22:40 +08:00
Your Name 96c5cd50ec 优化:调整_mapping_tree_columns函数的格式,提升代码可读性 2026-01-18 13:42:20 +08:00
Your Name 27bb48c881 优化:增加连续失败处理逻辑,避免直播间卡死;调整抽奖参与逻辑,限制重试次数;添加购物红包OCR复查功能 2026-01-18 13:36:12 +08:00
Your Name 5519deb11b 参与: 添加连续失败上限,避免卡死在无法识别的福袋上 2026-01-18 00:03:06 +08:00
Your Name 746f24636a 预约: 在seek_reservation_room中添加总时间上限30秒,防止卡死 2026-01-17 23:50:36 +08:00