From 079035ad65aefd4cbe9f4fc30c228e7cf9590469 Mon Sep 17 00:00:00 2001 From: PineHomePC Date: Sun, 23 Aug 2026 22:37:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E9=85=8D=E7=BD=AE=E4=B8=8E=E6=96=87?= =?UTF-8?q?=E6=A1=A3=EF=BC=88.env.example/.gitignore/README=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 5 +++++ .gitignore | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..7769110 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +# 微信小程序配置(真实微信登录) +# 复制本文件为 server/.env 并填入真实值;或直接在部署环境设置环境变量。 +# 获取方式:微信公众平台 mp.weixin.qq.com → 开发 → 开发管理 → 开发设置 → AppID / AppSecret +WX_APPID=你的小程序AppID +WX_SECRET=你的小程序AppSecret diff --git a/.gitignore b/.gitignore index 65b9366..21ddf1d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,9 +11,10 @@ wheels/ # Virtual environments .venv -# Credentials(微信 AppID/Secret 等,勿提交) +# Credentials(微信 AppID/Secret 等,勿提交;.env.example 是模板,需提交) .env -.env.* +.env.local +*.local *.local # Runtime data: JSON "database" files are generated on first boot from