|
|
|
let configJSON
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
configJSON = {
|
|
|
|
base: {
|
|
|
|
// ip: 'http://192.168.7.21',//new
|
|
|
|
// ip: 'http://192.168.0.140',//old
|
|
|
|
ip: 'http://127.0.0.1', //?? two
|
|
|
|
auth_port: '8066',
|
|
|
|
public_port: '8092',
|
|
|
|
// backend_port: '8092',
|
|
|
|
backend_port: '44344', //?? three
|
|
|
|
},
|
|
|
|
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://192.168.0.67',
|
|
|
|
//ip: 'http://192.168.0.140',
|
|
|
|
//ip: 'http://192.168.0.63',
|
|
|
|
ip: 'http://192.168.7.21',
|
|
|
|
|
|
|
|
//ip: 'http://149.223.116.5',
|
|
|
|
//ip: 'http://114.116.225.148',
|
|
|
|
//ip: 'http://10.123.148.162',
|
|
|
|
auth_port: '8066',
|
|
|
|
public_port: '8092',
|
|
|
|
backend_port: '8092'
|
|
|
|
|
|
|
|
},
|
|
|
|
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 {
|
|
|
|
// base: {
|
|
|
|
// ip: 'http://localhost',
|
|
|
|
// auth_port: '44323',
|
|
|
|
// public_port: '44350',
|
|
|
|
// backend_port: '44350'
|
|
|
|
// },
|
|
|
|
// 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: 'abpvnext_master_App',
|
|
|
|
// client_secret: '1q2w3e*',
|
|
|
|
// grant_type: 'password'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
export default configJSON
|