From 4e327282f552d96f4faf2f3500085e64f56f3de1 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 27 Sep 2026 20:33:20 -0500 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=85=8D=E7=BD=AE=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=20AppID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .gitignore | 5 +++++ weapp/README.md | 4 +++- weapp/project.config.json | 2 +- weapp/project.private.config.json | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index fcf5f38..862a532 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,8 @@ xhs/dist/ nomadro.png scripts/_*.py +# WeChat secrets (AppSecret never ships in miniprogram) +weapp/.env.local +weapp/.secrets* +**/.env.local + diff --git a/weapp/README.md b/weapp/README.md index aabbb3f..2f1e12a 100644 --- a/weapp/README.md +++ b/weapp/README.md @@ -22,10 +22,12 @@ python scripts/sync_data.py 2. 打开 **微信开发者工具** → 导入项目 → 目录选本仓库的 **`weapp/`**(不要选上级)。 -3. AppID:可用测试号,或把 `project.config.json` 里的 `touristappid` 换成你的小程序 AppID。 +3. AppID 已写入 `project.config.json`:`wx515bd42ee0db5c5d`。 4. 详情 → 本地设置 → **不校验合法域名**(开发期)。 +> **AppSecret** 只放本机 `weapp/.env.local`(已 gitignore),**不要**写进小程序前端或提交仓库。需要服务端调微信 API 时再读该文件。 + ## 目录 ``` diff --git a/weapp/project.config.json b/weapp/project.config.json index 65b0504..fbbe7e6 100644 --- a/weapp/project.config.json +++ b/weapp/project.config.json @@ -29,7 +29,7 @@ }, "compileType": "miniprogram", "libVersion": "3.7.12", - "appid": "touristappid", + "appid": "wx515bd42ee0db5c5d", "projectname": "youmin-nav", "condition": {}, "editorSetting": { diff --git a/weapp/project.private.config.json b/weapp/project.private.config.json index c242b09..b73ca52 100644 --- a/weapp/project.private.config.json +++ b/weapp/project.private.config.json @@ -1,6 +1,7 @@ { "description": "本地私有配置,勿提交敏感信息", "projectname": "youmin-nav", + "appid": "wx515bd42ee0db5c5d", "setting": { "urlCheck": false, "coverView": true,