constant.js
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Created by yangcheng on 2018年08月17日10:16:20.
* 系统常量类
* 配置是否为生产环境
* mook 本地默认为mook数据,方便调试
* uat 线上测试环境(打包注意要修改)
* reprod 演示环境
* release 线上生产环境(打包注意要修改)
*
*
*
*/
let configuration = 'sit';
let baseApi,wxApi, fileApi;
if (configuration === 'sit') {
baseApi = 'http://114.112.96.30:10003'; //测试对外 http://114.112.96.30:10003/ins-eureka
wxApi = 'ws://114.112.96.30:10003';
fileApi = 'http://114.112.96.30:10003'
} else if (configuration === 'uat') {
baseApi = 'http://192.168.0.254:8000'; //测试环境
// baseApi = 'http://192.168.0.18:8000'; //测试环境
wxApi = 'ws://192.168.0.254:8000'
fileApi = 'http://192.168.0.254'
}else if (configuration === 'reprod') {
baseApi = 'http://114.112.96.30:10004'; //测试环境
// baseApi = 'http://192.168.0.18:8000'; //测试环境
wxApi = 'ws://114.112.96.30:10004'
fileApi = 'http://114.112.96.30:10004'
} else {
baseApi = '';
wxApi = '';
fileApi = '';
}
const SYS_CONFIG ={
baseApi,
wxApi,
fileApi
}
export default SYS_CONFIG