config.js 955 B

123456789101112131415161718192021222324252627282930313233
  1. const h5Url='https://bossweb.edccc.cn'
  2. if (process.env.NODE_ENV !== 'development') {
  3. //正式环境
  4. const ROOTPATH = "https://yizhizan.edccc.cn/sqx_fast";
  5. const ROOTPATH1 = "https://yizhizan.edccc.cn/sqx_fast";
  6. const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服
  7. const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/" ; //聊天
  8. const ROOTPATH4 = "https://yizhizan.edccc.cn";
  9. module.exports = {
  10. APIHOST: ROOTPATH,
  11. APIHOST1: ROOTPATH1,
  12. WSHOST: ROOTPATH2,
  13. WSHOST1: ROOTPATH3,
  14. WSHOST4: ROOTPATH4,
  15. h5Url
  16. };
  17. }else{
  18. //测试环境
  19. const ROOTPATH = "/sqx_fast";
  20. const ROOTPATH1 = "/sqx_fast";
  21. const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服
  22. const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/"; //聊天
  23. const ROOTPATH4 = "";
  24. module.exports = {
  25. APIHOST: ROOTPATH,
  26. APIHOST1: ROOTPATH1,
  27. WSHOST: ROOTPATH2,
  28. WSHOST1: ROOTPATH3,
  29. WSHOST4: ROOTPATH4,
  30. h5Url
  31. };
  32. }