chore: 配置微信小程序 AppID
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f88ed5df13
commit
4e327282f5
5
.gitignore
vendored
5
.gitignore
vendored
@ -34,3 +34,8 @@ xhs/dist/
|
||||
nomadro.png
|
||||
scripts/_*.py
|
||||
|
||||
# WeChat secrets (AppSecret never ships in miniprogram)
|
||||
weapp/.env.local
|
||||
weapp/.secrets*
|
||||
**/.env.local
|
||||
|
||||
|
||||
@ -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 时再读该文件。
|
||||
|
||||
## 目录
|
||||
|
||||
```
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.7.12",
|
||||
"appid": "touristappid",
|
||||
"appid": "wx515bd42ee0db5c5d",
|
||||
"projectname": "youmin-nav",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
"description": "本地私有配置,勿提交敏感信息",
|
||||
"projectname": "youmin-nav",
|
||||
"appid": "wx515bd42ee0db5c5d",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"coverView": true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user