environment.js
3.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import { envIndex } from '~/config'
// console.log(envIndex, 'envIndex')
const secretKey_items = {
ip: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
uat: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
prod: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
preRelease: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
cdptest: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}
}
const scrmSecretKey_items = {
ip: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
dev: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
uat: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
prod: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
preRelease: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
cdptest: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}
}
const domain_items = {
ip: {
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.117:8292', //叶立庆
// dj: "http://192.168.1.86:8594", //蔡远明
// dj: 'http://192.168.1.104:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭
// dj: 'http://192.168.1.122:8292', //庞善天
dj: 'http://192.168.1.96:8292', // 王璐琦
// dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.67:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺
// dj: 'http://192.168.148.221:8292',
// scrm: 'http://192.168.1.165:8292'
scrm: 'https://scrm.dev.glsx.com.cn',
merchants: 'http://rop-merchant.dev.glsx.com.cn'
},
dev: {
dj: 'http://dj.dev.glsx.com.cn',
// dj: 'http://192.168.3.226:9711',
scrm: 'https://scrm.dev.glsx.com.cn',
merchants: 'http://rop-merchant.dev.glsx.com.cn',
AI: 'http://192.168.3.191:7864'
},
uat: {
dj: 'https://dj.test.glsx.com.cn',
scrm: 'https://scrm.test.glsx.com.cn',
AI: 'https://aipractice.test.glsx.com.cn',
merchants: 'https://rop-merchant.test.glsx.com.cn'
},
prod: {
dj: 'https://dj.glsx.com.cn',
scrm: 'https://scrm.glsx.com.cn',
AI: 'https://aipractice.glsx.com.cn',
merchants: 'https://commodity.glsx.com.cn'
},
preRelease: {
dj: 'https://dj.beta.glsx.com.cn',
scrm: 'https://scrm.beta.glsx.com.cn',
merchants: 'https://rop-merchant.beta.glsx.com.cn',
AI: 'https://aipractice.beta.glsx.com.cn'
},
cdptest: {
dj: 'https://cdptest.glsx.com.cn',
scrm: 'https://cdptest.glsx.com.cn',
merchants: 'https://rop-merchant.test.glsx.com.cn'
}
}
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease', 'cdptest']
module.exports = {
domain: domain_items[target[envIndex]],
secretKey: {
dj: secretKey_items[target[envIndex]],
scrm: scrmSecretKey_items[target[envIndex]],
merchants: scrmSecretKey_items[target[envIndex]],
clue: scrmSecretKey_items[target[envIndex]]
}
}