 CodexandClaude Opus 4.5
|
b96a67b6b8
|
refactor: web_gui 中 5 个 ADB/config 函数改为薄包装
find_adb_executable / list_adb_devices / resolve_adb_device /
read_config / write_config 在 gui_core.py 中已有完全相同的实现。
web_gui.py 中改为薄包装,所有外部使用保持兼容。
注:get_nested_value 是 web_gui 独有,保留。
文件行数:gui/web_gui.py 原 2253 行减至 2210 行(约减 43 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 10:12:38 +08:00 |
|
 CodexandClaude Opus 4.5
|
7d63a36125
|
chore: 删除重复的 log_color_config_fixed.py
log_color_config.py (540行) 与 log_color_config_fixed.py (198行) 的
get_operation_type / get_color_config / apply_operation_color 行为完全一致。
保留前者(更完整),删除后者,简化 actions_log_viewer.py 的双 try import。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 10:12:38 +08:00 |
|
zzz
|
2e811e71b3
|
Merge branch 'main' into claude/wonderful-brattain-d1cfe0
|
2026-05-21 09:58:24 +08:00 |
|
 CodexandClaude Opus 4.5
|
73cfb50a2b
|
chore: 删除 fudai_core 中的未使用 import
去除大规模拆分后剩余的死 import:
- PIL.Image (未引用)
- numpy as np (未引用)
- douyin_reservation_logic (未引用)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:49:38 +08:00 |
|
 CodexandClaude Opus 4.7
|
7f33d45df6
|
fix: tools/diagnostics/check_web_gui_config_sync 路径回归
main 上脚本被迁到 tools/diagnostics/,manifest 被迁到 tools/dev/,
但 ROOT/MANIFEST_PATH 仍按旧位置(tools/ 根、parents[1])计算,
导致脚本运行时报 FileNotFoundError 找不到 gui_app.py。
- ROOT: parents[1] -> parents[2]
- MANIFEST_PATH: tools/web_gui_config_manifest.json -> tools/dev/web_gui_config_manifest.json
回归:脚本输出 [OK] WebUI and gui_app.py config keys are synchronized (125 shared keys)。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:47:53 +08:00 |
|
 CodexandClaude Opus 4.5
|
ba4c131b2d
|
refactor: 简化 gui_app.format_gui_log_line 为薄包装
原本 64 行的 fallback 实现实际上是死代码——
gui.components.log_viewer.format_gui_log_line 一直存在,
import 失败几乎不可能发生。
简化为薄包装函数,import 失败时返回原字符串。
文件行数:5857 -> 5804(减 53 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:42:27 +08:00 |
|
 CodexandClaude Opus 4.7
|
96f8600d42
|
小批量收尾:删除零引用 scrcpy_screenshot + douyin_fudai/log_viewer print→logger
- 删除 operations/scrcpy_screenshot.py(100 行,仅自身定义自身使用,全仓零外部引用)
- douyin/core/douyin_fudai.py:3 处兜底 print → logging.info/warning(_log_kv 失败时的兜底路径)
- gui/components/log_viewer.py:2 处错误 print → _LOGVIEW_LOGGER.exception(日志线程异常 / 刷新显示异常)
回归:149→148 .py,全量编译通过;test_filter_logging / check_web_gui_config_sync 通过;
fudai_analyse 类正常导出,log_viewer 模块加载 OK。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:40:18 +08:00 |
|
 CodexandClaude Opus 4.7
|
938011f672
|
douyin_screenshot_manager: print → _mgr_log
- 新增模块级 _mgr_log(msg, level):统一走 logging,失败兜底 stdout
- 全部 21 处裸 print 改为 _mgr_log,保留 "[截图管理]" / "[调试图像清理]" 前缀
回归:149 .py 编译通过;test_filter_logging / check_web_gui_config_sync 通过;
get_latest_attempt_path / get_last_success_path / ensure_ocr_dir /
shutdown_debug_save_worker 等公共函数仍可加载。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:39:19 +08:00 |
|
 CodexandClaude Opus 4.7
|
04035abbc0
|
douyin_robot: print → _robot_log
- 新增模块级 _robot_log(analyser, msg, level):优先 analyser._log_kv("人机校验" 类目),
退化到 logging,最后兜底 stdout
- 全部 10 处裸 print → _robot_log
- "无法处理 + 等待30分钟" 类提示标 level=WARNING
- check_robot_pic_distance 中的 print(x, y) 与 print(x1, first_y) 改为 DEBUG 级,
附带"找到首/末像素"语义说明
回归:149 .py 编译通过;test_filter_logging / check_web_gui_config_sync 通过;
3 个公共函数(check_have_robot_analyse / deal_robot_analyse / check_robot_pic_distance)
仍可正常加载。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:38:57 +08:00 |
|
 CodexandClaude Opus 4.7
|
a876d9ebb0
|
gui/web_gui: 内部错误 print → _wg_log,保留启动横幅
- 新增模块级 _wg_log(msg, level):与 yanghao/screenshot 同模式
- 内部错误(日志写权限/失败、静态文件、logs search/get_logs_since)
6 处 print → _wg_log,分级 WARNING/ERROR
- main() 内的 7 处 print 保留为 stdout:启动端口/URL/中断退出/帮助提示
属于交互/CLI 输出而非日志事件,走 stdout 更直观
回归:149 .py 编译通过;test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:38:47 +08:00 |
|
 CodexandClaude Opus 4.7
|
5a381698d8
|
operations/{screenshot,ocr}_operations: print → logging
- screenshot_operations.py: 19 处 print → _ops_log(带 [截图]/[截图操作] 前缀)
- ocr_operations.py: 7 处 print → _ocr_log(带 [OCR] 前缀)
- 两处都新增模块级 logger + 兜底 helper,与 douyin_yanghao / screenshot_service
采用相同模式
回归:149 .py 编译通过;test_filter_logging / check_web_gui_config_sync 通过;
ScreenshotOperations、analyse_pic_word 仍可正常加载。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:38:07 +08:00 |
|
 CodexandClaude Opus 4.7
|
4557dfb306
|
operations/screenshot_service: print → logging
- 新增模块级 _svc_log(msg, level):统一走 logging,失败兜底 stdout
- 全部 24 处 print 改为 _svc_log,保留消息中"[截图服务]"前缀以兼容历史搜索
- 默认 level=INFO,告警分级(WARNING/ERROR 等)后续再细化
回归:149 .py 全量编译通过;test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:37:56 +08:00 |
|
 CodexandClaude Opus 4.7
|
49704834d8
|
douyin_yanghao: print → _yanghao_log + 修 3 处 f-string bug
- 新增模块级 _yanghao_log(analyser, msg, level):优先走 analyser._log_kv,
退化到模块 logger,最后兜底 stdout,避免日志静默丢失
- 全部 58 处裸 print 改为 _yanghao_log 调用
- 修 3 处 f-string 缺前缀 bug({prob} 之前是字面量而非插值):
L440 跳过点爱心、L466 跳过点收藏、L498 跳过评论的概率显示
回归:全量 149 .py compileall 通过;douyin_yanghao 4 条 helper 路径
(_log_kv / broken _log_kv / 无 _log_kv 兜底 / 4 个 yanghao_* 顶级函数)
全部 PASS;test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 09:37:46 +08:00 |
|
 CodexandClaude Opus 4.5
|
41c3f28eb7
|
chore: 删除死文件 douyin/fudai/core/fudai_detail_reader.py
该文件只有一个函数 get_fudai_contain(1217 行),但无任何模块
import 它。所有调用方都用的是 douyin_fudai_core.get_fudai_contain。
注:本次 fudai_detail_modules/ 合并时引入的 fudai_detail_orchestrator.py
里的 get_fudai_contain 引用是从 douyin_fudai_core 来的,与本文件无关。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:36:48 +08:00 |
|
Codex
|
16b3bde893
|
精修 WebUI 第二十一轮:kbd 提示 / 标题反馈 / 趋势箭头
- 关键按钮 kbd 提示:[data-kbd-mod="1"][data-kbd] 自动按平台注入 ⌘ 或 Ctrl 前缀;hover 时不透明度从 0.55 → 1;btnStart 显示 "⌘ ↵",btnSave 显示 "⌘ S";<900px 隐藏
- 页面 title 随运行状态:默认 "抖音挂机控制台",运行中前置 "● ... · 运行中"
- stat 数字趋势箭头:setTextIfExists 检测数值变化方向,向 .statValue 注入 .statTrend ▲/▼ 圆形徽章 (success/danger 色),1100ms 出现 + 淡出再自动移除
- cache-bust v23 → v24
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
df96f25eba
|
精修 WebUI 第二十轮:Favicon + 长按连发 + 刷新反馈
- 添加内联 SVG favicon(与 brandMark 同款:紫色渐变圆角方框 + 播放三角 + 圆点),data URL 不增加请求
- number stepper 长按连发:pointerdown 后 500ms 进入 80ms/次的连发;pointerleave/up/cancel/blur 全部取消
- btnRefresh 加 isBusy 状态 + spinner;完成后 toast 反馈"已刷新 · N 台在线"或"无在线设备"或失败提示
- cache-bust v22 → v23
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
cea5f1df45
|
精修 WebUI 第十九轮:sticky elevation + toggle switch + 步进按钮
- sectionTitle sticky 真贴顶时(IntersectionObserver + sentinel rootMargin -65px)加 .isStuck 类,浮起 0 6px 12px 阴影
- 关键开关升级为 toggle switch:.check.isToggle 把 input[type=checkbox] 渲染成 32×18 滑块(slider 配 14×14 圆点 + 0.18 阴影);3 个总控开关接入:infinite_loop_enabled / yanghao_enabled / yanghao_enable_actions / yanghao_only
- fmtDuration 改 mono 格式:HH:MM:SS / MM:SS(padStart),适配 tabular-nums
- 自绘 number stepper:所有 .input[type=number] 自动包 .numStepperWrap,hover/focus 时右侧浮现 ▲▼ 微按钮(18×12 双按钮组),调用 stepUp/stepDown + 派发 input/change;inline2 内不加避免连体冲突
- cache-bust v21 → v22
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
f16eadbd75
|
精修 WebUI 第十八轮:后端 /api/version + 预约卡 hover accent
- 后端 gui/web_gui.py 新增 GET /api/version:返回 {name, version, build},前端 footer 自动从 cache-bust fallback 切换为真实版本号
- 预约卡 .reservationItem hover 时左侧浮现 2px primary accent 条;isImminent / isDue 状态下不显示(避免与 warning/danger 边框冲突)
- 高价值直播间共用 reservationItem 视觉,自动获得相同 hover accent
- cache-bust v20 → v21
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
632951d004
|
精修 WebUI 第十七轮:sticky 章节 / 语义着色 / 搜索计数 / 空状态升级
- sectionTitle 改 sticky 在长 panel 内吸附顶部,背景渐变 + 6px 模糊;cardTitle/summary 不变
- 福袋统计语义着色:参与成功/中奖 → success;失败 → error;未中奖 → muted;通过 .stateOk/.stateError/.stateWarn/.stateMuted 类切换
- 配置搜索右侧加实时匹配计数徽章("X 项");搜索清空时隐藏
- 空状态占位升级:从单色边框圆点 → 28px 聊天泡 SVG icon (currentColor mask) + 双行布局,更显设计
- cache-bust v19 → v20
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
51d8d53a2b
|
精修 WebUI 第十六轮:滚动顶按钮 / 连体按钮组 / 图表 hover / 徽章
- 滚动 floating 按钮:scrollY > 240 时右下方显示,毛玻璃圆形,平滑滚回顶部;移动端调高避让 toast
- WiFi ADB 操作改 .btnGroup 连体组合:共享圆角、中间无双边、focus z-index 抬起
- timeline 图加 hover 十字线 + tooltip:crosshair 跟随光标 snap 到最近 bin,浮层显示该 bin 的所有系列与时间,无事件显示空状态
- tabBtn[data-badge] 数字徽章:active 时反色 primary;预约数据更新时同步预约 tab 的徽章
- cache-bust v18 → v19
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
94e8d37d18
|
精修 WebUI 第十五轮:设备下拉框状态点
- decorateDeviceSelect: 把 #device select 包裹进 .deviceSelectWrap,在右侧自定义箭头之前插入状态点
- 状态点:选中具体设备或自动模式下有在线设备 → 绿色 ok;无设备 → 灰色 idle;refreshDevices/change 时更新
- cache-bust v17 → v18
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
16042d7fd2
|
精修 WebUI 第十四轮:过渡动画与移动端收敛
- 主题切换平滑:body 加 200ms color/background 过渡;切换时给 :root 临时加 isThemeSwitching,对所有 chrome 表面(header / card / panel / btn 等 18 类)启用 200ms 过渡;260ms 后移除避免长期影响
- 首屏 .app 容器淡入:220ms fadeIn + 微移
- 移动端 (<640) 收敛:subtitle 隐藏(保留 brandMark + title);footer appConnText 隐藏只留状态点
- cache-bust v16 → v17
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
a40ddc3083
|
精修 WebUI 第十三轮:动效、语义着色与帮助系统
- panel 切换动画:active 加 fadeIn (220ms) 替换无差别 surfaceIn,tab 切换更有反馈
- statValue 加 stateOk/stateMuted/stateError 语义着色:运行中显示 success 色(hero metric),未运行用 muted
- 预约卡倒计时实时刷新:startReservationsCountdownTick 每秒 tick,更新 .reservationRemain 文字 + isImminent/isDue 类,无需等 stats 轮询
- ? 快捷键弹出帮助 overlay:列出 ⌘K/⌘S/⌘Enter/Esc/?;ESC 或点击遮罩关闭;带毛玻璃 + scale 进出动画;输入框聚焦时不拦截
- cache-bust v15 → v16
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
3295cb3d6f
|
精修 WebUI 第十二轮:质感打磨
- brandMark 改为三档 OKLCH 渐变 + 高光 radial-gradient + hover 微浮起
- tabBtn hover 与 active 用 surface-muted ↔ primary-soft 混合,更稳的层级感
- footer 连接点 ok 状态加涟漪扩散动画(footerRipple)
- logSection: 圆角 v-md / hover border 提亮 / logHeader 渐变背景 / logTitle 加 4px 圆点 / logHeaderActions select 自绘箭头适配紧凑高度
- cache-bust v14 → v15
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
cdaa9e4c69
|
精修 WebUI 第十一轮:信息层级与视觉重音
- overview hero metric 字号 20→26px (text-2xl),紧字距,更接近 Vercel/Linear 的指标卡
- overviewLabel 改 10px uppercase,padding 提至 16/18px
- stats 第一行(运行/PID/运行时长)拆为 statsGridHero + .statHero 大卡,与下方密集网格区分主次
- cardTitle 图标改 chip 风:26×26 圆角填充容器,primary-soft 底 + primary-border 描边
- sectionTitle 加左侧 4px primary 圆点 accent;cardTitle/summary 上的 sectionTitle 不显示
- cache-bust v13 → v14
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
8b8e3129e5
|
精修 WebUI 第十轮:交互终章
- header 滚动时加 isScrolled 类:阴影提一档显得"浮起",区分内容区
- 键盘快捷键:⌘S/Ctrl+S 保存配置,⌘Enter/Ctrl+Enter 启动运行;尊重按钮 disabled 状态
- 通用 tooltip 系统:[data-tooltip] + 可选 data-tooltip-pos="bottom",带小箭头与毛玻璃;移动端禁用避免触摸浮悬
- btnTheme / btnShotFullscreen / 复制按钮 全部接入 tooltip
- cache-bust v12 → v13
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
0a2d67afb4
|
精修 WebUI 第九轮:overview 福袋卡迷你 sparkline
- 福袋处理卡片底部加入 22px 高 sparkline,合成 fudai_open_detail + fudai_attend_ok 两条序列为一条折线
- 渐变填充 + 折线双层;用 currentColor 保证主题切换自动跟随;数据少于 2 点时隐藏
- pollStats 触发渲染,与主时间轴同源数据
- cache-bust v11 → v12
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
d1f153b373
|
精修 WebUI 第八轮:可复制 + 全屏 + 表格细节
- statValue 一键复制:PID 和 TraceId hover 显示复制按钮,点击调用 navigator.clipboard,带 toast 反馈与 fallback (textarea + execCommand)
- setTextIfExists 改为只更新文本节点,保留子元素(如 .copyBtn 不被覆盖)
- 截图区右上角加全屏按钮(hover 显示):调用 requestFullscreen,失败则新窗口打开;左下角浮层显示截图时间戳,毛玻璃背景
- 表格行:默认 ellipsis 截断,hover 时展开为多行换行
- cache-bust v10 → v11
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
857b33f413
|
精修 WebUI 第七轮:底部状态栏 + 实时反馈
- 底部 appFooter:左侧连接状态点(idle/ok/error 3 态 + tooltip)+ 文字;右侧版本号 + 构建标识;移动端纵向排列
- API 连接状态实时指示:apiGet/apiPost 拦截成功失败,连续 2 次失败才标 error,避免抖动
- 版本号:尝试拉 /api/version;失败时回退到 cache-bust tag
- stat 数字变化时短暂闪 primary 色(statFlash 700ms),通过 setTextIfExists 自动触发
- number input 隐藏原生上下箭头 + tabular-nums 数字
- cache-bust v9 → v10
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
07700c24d9
|
精修 WebUI 第六轮:交互精致度
- 配置搜索加 ⌘K / Ctrl+K 快捷键聚焦 + ESC 清空/失焦;右侧带 kbd 提示徽章(输入或聚焦时自动隐藏;移动端不显示);自动按平台显示 ⌘ 或 Ctrl
- 按钮 .isBusy 状态加旋转 spinner(隐藏图标),禁用 pointer-events
- 即将开奖预约(剩余 ≤60s)加 isImminent 类:warning 边框 + 微脉动 + value pill 反白;已到时间加 isDue(danger 边框 + 反白)
- brand logo 重做:圆角方形容器 + 内嵌播放三角 + 装饰圆点,更具品牌识别度
- 侧边导航 active 指示条改为 sideNav::before 浮动滑块,CSS var 控制 Y/H,切换 tab 时 220ms 滑动;resize/字体加载完成自动重算位置;横向布局自动隐藏
- cache-bust v8 → v9
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
96cba09c49
|
精修 WebUI 第五轮:交互能力与功能性升级
- 新增 Toast 通知系统:右下角浮出(移动端横铺底部),4 类(success/error/warn/info)+ 关闭按钮 + 自动消失 + hover 暂停消失
- 关键操作接入 Toast:保存配置 / 加载配置 / 启动失败 / 设备操作(连接/断开/WiFi 启用)成功失败提示
- 日志关键词分类着色:行级 span,自动识别 ERROR/WARN/SUCCESS/DEBUG/INFO(含中英文与 emoji 标记);DocumentFragment 批量渲染保持性能
- 配置面板加跨标签搜索:workspaceHeader 内嵌搜索框,输入即时按 label/hint/key 过滤所有 row 与 sectionTitle,搜索时自动展开所有 panel;空结果显示空状态;带清空按钮
- 首屏统计骨架屏:未到数据前 statValue 显示 shimmer 占位;pollStats 成功后自动移除
- 移动端复查:inline2 在小屏取消连体边框;workspaceHeader 改纵向布局,搜索框占满宽;secondaryActions 分隔线隐藏;btnTheme 推到右侧
- cache-bust v7 → v8
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
aa5065590a
|
精修 WebUI 第四轮:表单细节 + 滚动行为
- inline2 双输入框视觉合并:连体边框、共享圆角、focus 时 z-index 提升
- inline2 内的 span(如 "~")改为正中对齐分隔符
- rowActions 加 border-top + padding-top;primary 按钮自然居前(order: -1)
- html scroll-behavior smooth;prefers-reduced-motion 时回退 auto
- cache-bust v6 → v7
|
2026-05-21 09:29:38 +08:00 |
|
Codex
|
276235408e
|
精修 WebUI 第三轮:清理 + a11y + 深色微调
- 清理死变量:surface-elevated、bg-start/mid/end、shadow-hover、shadow-primary*、accent-cyan/emerald、primary-soft-hover*、primary-action-bg
- header 动作组:primary 与 secondary 之间加 1px 分割线;btnTheme 加左 margin
- summary.sectionTitle 加自绘 chevron icon(mask SVG),open 时旋转 90°
- 表单 :focus 改为 :focus-visible(鼠标点击不再触发 ring)
- 按钮加 :focus-visible 双层光环(背景 + primary 描边)
- 深色主题对比度复查:border 26→2a,border-strong 2e→3a,hover-border 40→4a;surface-muted 1a→1c;primary-soft 1a1d33→1c2040;primary-border 2d3257→353c66;warning/danger soft 系列加亮一档;overview-primary-bg 141414→161620;hairline 0.04→0.06
- cache-bust v5 → v6
|
2026-05-21 09:29:38 +08:00 |
|
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 |
|
 CodexandClaude Opus 4.5
|
242876f679
|
refactor: 删除 fudai_core 中重复的 attend_choujiang 实现
attend_choujiang 在 fudai_core.py 中的旧版本只是一个回退实现:
开头就先尝试委派到 fudai_attend.attend_choujiang(更新版本),
1597 行的本地实现实际上是死代码——只在 import 失败时才会执行,
而 fudai_attend.py 一直存在。
简化为薄包装函数,直接调用 fudai_attend 中的实现。
文件行数:3799 -> 2208(减 1591 行,约 42%)
本次会话累计 fudai_core 减少:6393 -> 2208(减 4185 行,65%)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:28:52 +08:00 |
|
 CodexandClaude Opus 4.5
|
9edfcc2449
|
chore: 删除 operations/ 下的废弃存根模块
- device_operations.py:仅是空 stub(__all__ = []),无人使用
- image_operations.py:同上
- screenshot_service_new.py:未被引用的重复实现
operations/__init__.py 不导出这些模块,外部无依赖。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:22:56 +08:00 |
|
 CodexandClaude Opus 4.5
|
61ec06092d
|
refactor: 删除 fudai_core 中重复的两个超大函数
douyin_fudai_core.py 中的 should_skip_fudai_by_config (~480 行) 和
basic_join_decision (~1940 行) 与 fudai_filter.py 中的实现高度重复。
保留 fudai_filter.py 中的版本,删除 douyin_fudai_core.py 中的副本。
兼容性:保留薄包装函数,所有现有 import 路径继续工作。
文件行数:6206 -> 3799(减 2407 行,约 39%)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:16:12 +08:00 |
|
 CodexandClaude Opus 4.5
|
7d834d316f
|
refactor: 删除 fudai_core 中重复的 check_contain
check_contain 在 fudai_filter.py 中已有完全相同的实现。
通过顶部 import 直接复用,删除 douyin_fudai_core.py 中的副本。
文件行数:6250 -> 6206(减 44 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:11:45 +08:00 |
|
 CodexandClaude Opus 4.5
|
e38640eb63
|
refactor: 删除 fudai_core 中重复的 4 个开奖检查函数
check_lucky_draw_result / check_have_reward_notice_confirm /
check_in_order_confirm_page / get_reward 在 fudai_result_checker.py
中已有更新版本(使用 preprocess_for_ocr 等改进)。
douyin_fudai_core.py 中保留薄包装函数作为兼容 re-export,
确保任何旧调用点继续工作。
文件行数:6347 -> 6250(减 97 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:08:43 +08:00 |
|
 CodexandClaude Opus 4.5
|
0031f17ebc
|
refactor: 抽取 is_watch_task_fudai / _is_short_countdown_text 到 fudai_filter
douyin_fudai_core.py 中存在与 fudai_filter.py 完全重复的
is_watch_task_fudai 实现,_is_short_countdown_text 也属于过滤逻辑。
集中到 fudai_filter.py 后,douyin_fudai_core.py 保留薄包装函数
作为兼容 re-export,确保所有既有调用点继续工作。
文件行数:6393 -> 6347(减 46 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:04:40 +08:00 |
|
 CodexandClaude Opus 4.5
|
2d6cbecf7e
|
refactor: 抽取 underlying_operations 顶部辅助函数到 io_utils.py
将 4 个模块级辅助函数及相关常量从 underlying_operations.py 抽离到
新建的 douyin/core/io_utils.py:
- _verify_png_integrity
- _safe_replace_file
- _ensure_parent_dir
- _mirror_screenshot_to_external
- _EXTERNAL_DOUYIN_FUDAI_DIR / _EXTERNAL_AXF_SCREENSHOT
underlying_operations.py 仍重新导出这些符号,保持向后兼容,
所有外部 import 无需修改。
文件行数:3508 -> 3342(减 166 行)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 09:01:14 +08:00 |
|
 CodexandClaude Opus 4.5
|
bdde741db1
|
refactor: 删除冗余的 douyin_logger.py
douyin_logger.py 提供的 get_logger 已被 douyin_logging.get_logger 覆盖。
唯一调用处(wrapper 中的回退路径)改为使用 douyin_logging.get_logger。
douyin/logging/ 模块数:9 -> 8
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 08:57:34 +08:00 |
|
 CodexandClaude Opus 4.5
|
996990be31
|
refactor: 合并 action_tracker.py 到 action_logger.py
action_tracker.py 只有 28 行,仅定义 track_action 装饰器,
该装饰器内部依赖 ActionLogger 和 PerformanceTracker,
合并到 action_logger.py 更内聚。
douyin/logging/ 模块数:10 -> 9
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 08:55:40 +08:00 |
|
 CodexandClaude Opus 4.5
|
a065c12d0c
|
refactor: 合并 error_logger.py + debug_logger.py 到 internal_loggers.py
这两个模块只被 douyin_logging_wrapper 内部使用,外部完全不引用。
合并为单文件 internal_loggers.py 减少模块数量。
douyin/logging/ 模块数:11 -> 10
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 08:53:48 +08:00 |
|
zzz
|
6e8e5d1102
|
Merge pull request 'claude/wonderful-brattain-d1cfe0' (#2) from claude/wonderful-brattain-d1cfe0 into main
Reviewed-on: #2
|
2026-05-21 08:49:06 +08:00 |
|
 CodexandClaude Opus 4.5
|
b137aead48
|
refactor: 合并 fudai_detail_modules/ 到 douyin/fudai/core/
将 fudai_detail_modules/ 6 个模块全部迁移到 douyin/fudai/core/:
- fudai_detail_coupon_detection.py
- fudai_detail_operations.py
- fudai_detail_room_title.py
- fudai_detail_utils.py
- fudai_detail_validator.py
- fudai_detail_reader.py -> fudai_detail_orchestrator.py(避免与 core/ 已有同名文件冲突)
更新所有 import:
- douyin/fudai/douyin_fudai_core.py
- douyin/fudai/douyin_fudai_detail.py
删除 fudai_detail_modules/ 空目录及其 README/__init__。
验证:python -m compileall 全项目通过。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 08:46:11 +08:00 |
|
 CodexandClaude Opus 4.5
|
cb4d25abdf
|
refactor: 删除死代码 _parse_mm_ss / _extract_2digits
这两个内嵌函数定义后从未被调用(grep 验证)。
time_utils.py 中已有公共版本可供未来使用。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 00:34:19 +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 |
|