app/
├── static
│ ├── css
│ │ ├── input.css
│ │ └── app966.css
│ ├──js
│ │ └── app966.js
│ └── images
├── templates
│ └── index.html
├── src/
│ └── error_img/ # 存放识别失败的图片,用于自训练
│ └── test/ # 演示效果
├── .env
├── app.py
├── auth.py
├── datebase.py
├── init_db.py
├── models.py
├── main.py
├── sendEmail.py
├── Dockerfile
├── README.md
├── requirements.txt
├── webpack.config.js
├── uwsgi.ini
└── package.json
└── tailwind.config.js
- 2026.05.01,调用
/api/gift_code接口时,需添加代理,否则会返回:请求错误状态码为:101。
- 在
_gift函数中添加代理代理IP普通即可无需高匿代理,需要自己写个脚本从各大代理平台获取免费代理自己维护,或者等我更新。
proxy = {
"http": "http://127.0.0.1:7890",
}
result = requests.post(url, headers=headers, data=data, proxies=proxy).text
# 克隆项目
git clone https://github.com/Superheroff/wjdrGiftcode.git
# 进入项目目录
cd wjdrGiftcode/app
# 安装依赖
pip install -r requirements.txt
# 安装前端依赖
npm install
# 初始化数据库
python init_db.py
# 构建前端项目
npm run build
npm run webpackbuild
- 编辑
.env 文件,填写数据库连接、Redis主机、Redis端口、Redis密码、发送邮箱地址、发送邮箱密码等信息。
# 构建Docker镜像
docker build -t wjdrcode:1.0 .
# 运行Docker容器
docker run -d -p 5201:5201 --name wjdr wjdrcode:1.0
Apache-2.0