增加线上配置
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
// 环境地址配置
|
||||
const ENV_CONFIG = {
|
||||
release: 'https://smartguest.bmser.com:8091',
|
||||
trial: 'https://smartguest.bmser.com:8091',
|
||||
// develop: 'https://192.168.123.76:8080'
|
||||
develop: 'https://10.50.13.191:8091'
|
||||
@@ -12,6 +13,9 @@ function getBaseUrl() {
|
||||
const accountInfo = wx.getAccountInfoSync()
|
||||
const envVersion = accountInfo.miniProgram.envVersion
|
||||
// release = 正式版, develop = 开发版, trial = 体验版
|
||||
if (envVersion === 'release') {
|
||||
return ENV_CONFIG.release
|
||||
}
|
||||
return envVersion === 'trial' ? ENV_CONFIG.trial : ENV_CONFIG.develop
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user