整理环境分支问题

This commit is contained in:
皮伟
2019-10-29 15:16:41 +08:00
parent d5a4cbc476
commit 998135fd1f
8 changed files with 48 additions and 29 deletions

View File

@@ -10,7 +10,7 @@ let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl // 保融支付的收银台
// 可以多个接口域名,按需添加
console.log('环境:', process.env.VUE_APP_FLAG)
switch (process.env.VUE_APP_FLAG) {
case 'development':
case 'dev':
// apiDomain = 'http://47.96.143.111:7000/api/v1'
apiDomain = 'http://139.199.50.151:7000/api/v1' // 国富api
// imgDomain = 'http://10.10.100.98:7012/updown' // dev
@@ -21,15 +21,15 @@ switch (process.env.VUE_APP_FLAG) {
mainUrl = 'http://139.199.50.151'
payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action'
break
case 'staging':
apiDomain = 'http://47.96.143.111:7000/api/v1'
imgDomain = 'http://211.159.248.123:7001'
case 'uat':
apiDomain = ''
imgDomain = ''
// 静态服务资源
assetsUrl = 'http://47.96.143.111:8000/app/'
assetsUrl = ''
mainUrl = ''
payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action'
payUrl = ''
break
case 'production':
case 'prd':
apiDomain = 'https://iagentsales.e-guofu.com/api/v1'
imgDomain = 'https://iagentsales-ud.e-guofu.com:8553/updown'
// imgDomain = 'http://10.10.100.98:7012/updown' // 上生产前
@@ -39,6 +39,14 @@ switch (process.env.VUE_APP_FLAG) {
mainUrl = 'https://iagentsales.e-guofu.com'
payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action'
break
case 'dat':
apiDomain = ''
imgDomain = ''
// 静态服务资源
assetsUrl = ''
mainUrl = ''
payUrl = ''
break
}
/**
* 配置文件