From e5c5ce06ee8c60ebddb6f850a1af4c15d727b68f Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 21 May 2026 13:17:10 +0800 Subject: [PATCH] =?UTF-8?q?docs/README:=20=E6=9B=B4=E6=96=B0"=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E5=8A=9F=E8=83=BD"=E6=8C=87=E5=BC=95?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 把"在项目根目录创建 douyin_xxx.py" 改为按职责放到对应子包 (douyin/core / douyin/fudai/core / douyin/detection 等) - 把 douyin_fudai.py 标题改为 douyin/core/douyin_fudai.py - 把 gui_app.py 标题改为 gui/gui_app.py - 集成 GUI 后建议跑 tools/diagnostics/check_web_gui_config_sync.py 校验 Co-Authored-By: Claude Opus 4.7 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6392762..c660a74 100644 --- a/README.md +++ b/README.md @@ -1321,19 +1321,21 @@ python bin/run_cli.py \ ### 添加新功能 1. **创建新模块** - - 在项目根目录创建 `douyin_xxx.py` + - 按职责放到对应包:核心调度 → `douyin/core/`,福袋核心 → `douyin/fudai/core/`, + 检测 → `douyin/detection/`,处理器 → `douyin/handlers/`,工具 → `douyin/utils/` 等 - 实现核心功能 - 添加类型提示和文档字符串 2. **集成到主流程** - - 在 `douyin_fudai.py` 中导入新模块 + - 在 `douyin/core/douyin_fudai.py` 中导入新模块 - 在适当位置调用新功能 - 添加配置参数(如需要) 3. **添加 GUI 支持** - - 在 `gui_app.py` 中添加 UI 控件 + - 在 `gui/gui_app.py` 中添加 UI 控件 - 在 `webui/index.html` 中添加配置项 - 在 `webui/app.js` 中添加默认值 + - 用 `python tools/diagnostics/check_web_gui_config_sync.py` 校验 GUI ⇄ WebUI key 同步 4. **测试** - 编写单元测试(如需要)