environment.js
933 Bytes
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
46
47
48
49
50
51
52
53
const target = [
'ip',
'dev',
'uat',
'prod'
]
/**
*
0本地
1开发
2测试
3生产
*/
const index = 2
const secretKey = {
ip: {},
dev: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b',
}
},
uat: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b',
}
},
prod: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b',
}
},
} [target[index]]
const domain = {
ip: 'http://192.168.3.181:8394',
dev: 'https://scrm.dev.glsx.com.cn',
uat: 'https://scrm.test.glsx.com.cn',
prod: 'https://scrm.glsx.com.cn',
} [target[index]]
const pathEnum = {
sso: '/rop-scrm-sso/',
wechant: 'rop-scrm-wechant'
}
module.exports = {
index,
domain,
pathEnum,
secretKey,
}