chore: 配置微信小程序 AppID

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-09-27 20:33:20 -05:00
parent f88ed5df13
commit 4e327282f5
4 changed files with 10 additions and 2 deletions

5
.gitignore vendored
View File

@ -34,3 +34,8 @@ xhs/dist/
nomadro.png nomadro.png
scripts/_*.py scripts/_*.py
# WeChat secrets (AppSecret never ships in miniprogram)
weapp/.env.local
weapp/.secrets*
**/.env.local

View File

@ -22,10 +22,12 @@ python scripts/sync_data.py
2. 打开 **微信开发者工具** → 导入项目 → 目录选本仓库的 **`weapp/`**(不要选上级)。 2. 打开 **微信开发者工具** → 导入项目 → 目录选本仓库的 **`weapp/`**(不要选上级)。
3. AppID:可用测试号,或把 `project.config.json` 里的 `touristappid` 换成你的小程序 AppID。 3. AppID 已写入 `project.config.json`:`wx515bd42ee0db5c5d`。
4. 详情 → 本地设置 → **不校验合法域名**(开发期)。 4. 详情 → 本地设置 → **不校验合法域名**(开发期)。
> **AppSecret** 只放本机 `weapp/.env.local`(已 gitignore),**不要**写进小程序前端或提交仓库。需要服务端调微信 API 时再读该文件。
## 目录 ## 目录
``` ```

View File

@ -29,7 +29,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.7.12", "libVersion": "3.7.12",
"appid": "touristappid", "appid": "wx515bd42ee0db5c5d",
"projectname": "youmin-nav", "projectname": "youmin-nav",
"condition": {}, "condition": {},
"editorSetting": { "editorSetting": {

View File

@ -1,6 +1,7 @@
{ {
"description": "本地私有配置,勿提交敏感信息", "description": "本地私有配置,勿提交敏感信息",
"projectname": "youmin-nav", "projectname": "youmin-nav",
"appid": "wx515bd42ee0db5c5d",
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"coverView": true, "coverView": true,