修改apiBaseUrl
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
const env = wx.getAccountInfoSync().miniProgram.envVersion; // 获取当前环境(develop/trial/release)
|
const env = wx.getAccountInfoSync().miniProgram.envVersion; // 获取当前环境(develop/trial/release)
|
||||||
const config = {
|
const config = {
|
||||||
develop: { apiBaseUrl: 'http://192.168.5.5:9096' }, // 开发环境(本地调试)
|
develop: { apiBaseUrl: 'http://localhost:9096' }, // 开发环境(本地调试)
|
||||||
trial: { apiBaseUrl: 'https://test-api.example.com' }, // 体验版(测试环境)
|
trial: { apiBaseUrl: 'https://test-api.example.com' }, // 体验版(测试环境)
|
||||||
release: { apiBaseUrl: 'https://api.example.com' } // 正式版(生产环境)
|
release: { apiBaseUrl: 'https://api.example.com' } // 正式版(生产环境)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user