docs: 命令行示例与核显说明改新路径

- docs/完整技术文档.md:7 处 'python run_cli.py …' 命令统一改为
  'python bin/run_cli.py …',与重构后入口位置对齐(头部小贴士那
  一行的示例字符串保留作为对照说明)
- docs/核显GPU加速说明.md:'修改 Underlying_Operations.py' 改为
  'douyin/core/underlying_operations.py'

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
CodexandClaude Opus 4.7 committed 2026-05-21 13:35:19 +08:00
1 parent c802f62796
commit 941bbc2475
2 files changed
+8 -8

No files matched your search

+7 -7
View File
@@ -256,7 +256,7 @@ python -m py_compile douyin/fudai/douyin_fudai_core.py
python -m py_compile douyin/fudai/core/fudai_detail_orchestrator.py
# 运行短会话验证
python run_cli.py --wait-minutes 0 --device-id <ADB_ID>
python bin/run_cli.py --wait-minutes 0 --device-id <ADB_ID>
# 检查日志格式
Get-Content logs/actions.log -Tail 10 | Select-String "\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}"
@@ -279,13 +279,13 @@ pip install -r requirements-minimal.txt
3. 运行主流程(单设备示例):
```powershell
python run_cli.py --device-id <ADB_ID> --needswitch
python bin/run_cli.py --device-id <ADB_ID> --needswitch
```
4. 调试单次循环:
```powershell
python run_cli.py --device-id <ADB_ID> --wait-minutes 0
python bin/run_cli.py --device-id <ADB_ID> --wait-minutes 0
```
说明:如需快速禁用 OCR 启动耗时,可设置环境变量 `SKIP_OCR_INIT=1`。
@@ -401,7 +401,7 @@ print(op.analyse_pic_word('pic/screenshot.png'))
1) 在短时间窗口运行主流程以生成调试图片和日志(注意 `debug_captures.enabled`):
```powershell
python run_cli.py --device-id <ADB_ID> --wait-minutes 1
python bin/run_cli.py --device-id <ADB_ID> --wait-minutes 1
```
2) 基于日志时间戳筛选 `pic/` 下的候选图片(示例:按文件修改时间):
@@ -618,7 +618,7 @@ python -m py_compile $(git ls-files "**/*.py")
```powershell
# 伪命令示例:运行一段短时日志以产生调试图片
python run_cli.py --device-id <ADB_ID> --wait-minutes 1
python bin/run_cli.py --device-id <ADB_ID> --wait-minutes 1
# 手动或团队自定义脚本筛选 pic/ 下的失败图片并复制到约定目录(例如 tools/samples/)
```
@@ -7116,13 +7116,13 @@ debug_logger.log_exception(e, context={"step": "处理福袋"})
示例:快速启用截图镜像并保留调试图像(Linux/WSL 或 PowerShell 环境变量用法相似)
```bash
EXTERNAL_DOUYIN_FUDAI_DIR=<外部调试目录> SKIP_OCR_INIT=1 python run_cli.py --device-id <DEVICE_ID> --needswitch
EXTERNAL_DOUYIN_FUDAI_DIR=<外部调试目录> SKIP_OCR_INIT=1 python bin/run_cli.py --device-id <DEVICE_ID> --needswitch
```
示例:禁用截图镜像以提高性能
```bash
DISABLE_SCREENSHOT_MIRROR=1 python run_cli.py --device-id <DEVICE_ID>
DISABLE_SCREENSHOT_MIRROR=1 python bin/run_cli.py --device-id <DEVICE_ID>
```
+1 -1
View File
@@ -50,7 +50,7 @@ python gui_app.py
```
#### 方法3:在代码中修改
修改 `Underlying_Operations.py` 中的 `_detect_gpu_available` 方法,将核显检测部分改为:
修改 `douyin/core/underlying_operations.py` 中的 `_detect_gpu_available` 方法,将核显检测部分改为:
```python
if is_integrated:
# 核显:尝试使用GPU加速