constant.js 1.14 KB
/**
 * Created by yangcheng on 2018年08月17日10:16:20.
 * 系统常量类
 * 配置是否为生产环境
 * mook 本地默认为mook数据,方便调试
 * uat 线上测试环境(打包注意要修改)
 * reprod 演示环境
 * release 线上生产环境(打包注意要修改)
 * 
 * 
 * 
 */

let configuration = 'sit';

let baseApi,wxApi, fileApi;

if (configuration === 'sit') {
  baseApi = 'http://114.112.96.30:10003';  //测试对外  http://114.112.96.30:10003/ins-eureka
  wxApi = 'ws://114.112.96.30:10003';
  fileApi = 'http://114.112.96.30:10003'
} else if (configuration === 'uat') {
  baseApi = 'http://192.168.0.254:8000'; //测试环境
  // baseApi = 'http://192.168.0.18:8000'; //测试环境
  wxApi = 'ws://192.168.0.254:8000'
  fileApi = 'http://192.168.0.254'
}else if (configuration === 'reprod') {
  baseApi = 'http://114.112.96.30:10004'; //测试环境
  // baseApi = 'http://192.168.0.18:8000'; //测试环境
  wxApi = 'ws://114.112.96.30:10004'
  fileApi = 'http://114.112.96.30:10004'
} else {
  baseApi = '';
  wxApi = '';
  fileApi = '';
}

const SYS_CONFIG ={
  baseApi,
  wxApi,
  fileApi
}


export default SYS_CONFIG