config.js 1.5 KB

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