修正小程序本地与生产接口分流
This commit is contained in:
+6
-6
@@ -60,9 +60,8 @@
|
||||
店务小程序的接口域名由 `JY-Salon-WeChat/utils/config.js` 统一生成。
|
||||
|
||||
- 微信开发者工具运行时,`develop` 环境默认使用 `local`,接口地址为 `http://127.0.0.1:80/api`,管理端接口地址为 `http://127.0.0.1:80/api/admin`。
|
||||
- 真机开发版默认使用 `http://wcy111.top:18888`,避免真机把 `127.0.0.1` 识别为手机本机地址。
|
||||
- 体验版和正式版默认使用 `https://yunail.art`。
|
||||
- 如需本地临时切换到 tunnel 或远程开发地址,可复制 `JY-Salon-WeChat/utils/config.local.example.js` 为 `JY-Salon-WeChat/utils/config.local.js`,再调整 `developTarget` 或 `domains`。
|
||||
- 非本地的 `develop`、体验版和正式版默认使用 `https://yunail.art`。
|
||||
- 如需个人临时切换到其他后端,可复制 `JY-Salon-WeChat/utils/config.local.example.js` 为 `JY-Salon-WeChat/utils/config.local.js`,再调整 `developTarget` 或 `domains`。
|
||||
- 已登录的非安全请求默认启用请求签名,`config.local.js` 可通过 `enableRequestSigning: false` 临时关闭本地覆盖,但不要提交关闭签名的配置。
|
||||
- `config.local.js` 属于个人本地覆盖配置,已加入 `.gitignore`,不要提交到仓库。
|
||||
|
||||
@@ -70,9 +69,10 @@
|
||||
|
||||
设计师小程序的接口域名由 `JY-Artist-WeChat/utils/config.js` 统一生成,内置管理端接口域名由 `JY-Artist-WeChat/admin/utils/config.js` 统一生成。
|
||||
|
||||
- 用户端体验版和正式版默认使用 `https://yunail.art`,业务接口地址为 `https://yunail.art/api`。
|
||||
- 内置管理端体验版和正式版默认使用 `https://yunail.art`,管理端接口地址为 `https://yunail.art/admin/api`。
|
||||
- 本地开发如需强制走生产,可在 `JY-Artist-WeChat/utils/config.local.js` 和 `JY-Artist-WeChat/admin/utils/config.local.js` 写入 `developTarget: 'release'`。
|
||||
- 微信开发者工具运行时默认使用 `local`,用户端业务接口地址为 `http://127.0.0.1:80/api`,内置管理端接口地址为 `http://127.0.0.1:80/admin/api`。
|
||||
- 非本地的 `develop`、体验版和正式版默认使用 `https://yunail.art`,用户端业务接口地址为 `https://yunail.art/api`。
|
||||
- 非本地的 `develop`、体验版和正式版默认使用 `https://yunail.art`,内置管理端接口地址为 `https://yunail.art/admin/api`。
|
||||
- 如需个人临时覆盖,可复制 `JY-Artist-WeChat/utils/config.local.example.js` 和 `JY-Artist-WeChat/admin/utils/config.local.example.js` 为对应的 `config.local.js` 再做局部调整。
|
||||
- 微信后台的设计师小程序 AppID 必须在 `request 合法域名` 中配置 `https://yunail.art`;只填写域名根,不填写 `/api` 或具体接口路径。
|
||||
- `config.local.js` 属于个人本地覆盖配置,已加入 `.gitignore`,不要提交到仓库。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user