From aa3a99825cbb4c3fdd6cbe4ec07753ec040bb4d9 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Thu, 30 Jul 2026 11:53:30 +0800 Subject: [PATCH] =?UTF-8?q?docs(captcha):=20=E9=A1=B9=E7=9B=AE=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=A0=91=E5=92=8C=E5=AE=89=E8=A3=85=E6=8C=87=E5=BC=95?= =?UTF-8?q?=E8=A1=A5=E5=85=A8=E9=81=97=E6=BC=8F=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 安装章节新增 bash _set.sh 初始化步骤 - 项目结构树补全 _set.sh 和 requirements.txt --- captcha/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/captcha/README.md b/captcha/README.md index 0b388f4..674e16c 100644 --- a/captcha/README.md +++ b/captcha/README.md @@ -23,6 +23,10 @@ ## 安装 ```bash +# 自动创建 venv 并安装依赖(推荐) +bash _set.sh + +# 或手动安装 pip install Pillow ``` @@ -138,7 +142,9 @@ png_b64 = resp["data"]["image"] ``` captcha/ ├── captcha_service.py # 服务主程序(pymsg 服务 + 验证码生成与校验) +├── _set.sh # 初始化脚本(创建 venv + 安装依赖) ├── _run.sh # 启动脚本(cd 后 exec python3 captcha_service.py) +├── requirements.txt # Python 依赖(pymsg、Pillow) └── README.md ```