You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
let configJSON
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
configJSON = {
|
|
|
|
base: {
|
|
|
|
|
|
|
|
ip: 'http://dev.ccwin-in.com',
|
|
|
|
auth_port: '10582',
|
|
|
|
public_port: '10582',
|
|
|
|
backend_port: '10582'
|
|
|
|
},
|
|
|
|
basic: {},
|
|
|
|
upload: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
authServer: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
crm: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
oms: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
wx: {
|
|
|
|
ip: 'http://localhost',
|
|
|
|
basicPort: ''
|
|
|
|
},
|
|
|
|
client: {
|
|
|
|
client_id: 'basic-web',
|
|
|
|
client_secret: '1q2w3e*',
|
|
|
|
grant_type: 'password'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// 发布环境
|
|
|
|
configJSON = {
|
|
|
|
base: {
|
|
|
|
ip: 'http://dev.ccwin-in.com',
|
|
|
|
auth_port: '10582',
|
|
|
|
public_port: '10582',
|
|
|
|
backend_port: '10582'
|
|
|
|
},
|
|
|
|
basic: {},
|
|
|
|
upload: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
authServer: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
crm: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
oms: {
|
|
|
|
ip: 'http://localhost'
|
|
|
|
},
|
|
|
|
wx: {
|
|
|
|
ip: 'http://localhost',
|
|
|
|
basicPort: ''
|
|
|
|
},
|
|
|
|
client: {
|
|
|
|
client_id: 'basic-web',
|
|
|
|
client_secret: '1q2w3e*',
|
|
|
|
grant_type: 'password'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default configJSON
|