searchApi.js
644 Bytes
/**
* 获取环境信息
* @type String
*/
var env = process.env.NODE_ENV || 'development';
var util = require('../util/common');
/**
* 外系统依赖配置
* @type Object
*/
var config = {
'development': {
yohoSearch: 'http://192.168.102.216:8080/yohosearch'
},
'test': {
yohoSearch: 'http://192.168.102.224:8080/yohosearch/'//168联调
// yohoSearch: 'http://10.66.100.4:8080/yohosearch',
},
'preview': {
yohoSearch: 'http://192.168.102.216:8087/yohosearch'
},
'production': {
yohoSearch: 'http://search.yohoops.org/yohosearch'
}
};
module.exports = config[env];