config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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 ROOTPATH = "https://zp.xianmaxiong.com/sqx_fast";
  6. // const ROOTPATH1 = "https://zp.xianmaxiong.com/sqx_fast";
  7. const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服
  8. const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/"; //聊天
  9. const ROOTPATH4 = "https://yizhizan.edccc.cn";
  10. module.exports = {
  11. APIHOST: ROOTPATH,
  12. APIHOST1: ROOTPATH1,
  13. WSHOST: ROOTPATH2,
  14. WSHOST1: ROOTPATH3,
  15. WSHOST4: ROOTPATH4
  16. };
  17. }else{
  18. //测试环境
  19. // const ROOTPATH = "http://192.168.1.73:7155/sqx_fast";
  20. // const ROOTPATH1 = "http://192.168.1.73:7155/sqx_fast";
  21. const ROOTPATH = "https://yizhizan.edccc.cn/sqx_fast";
  22. const ROOTPATH1 = "https://yizhizan.edccc.cn/sqx_fast";
  23. const ROOTPATH2 = "wss://zp.xianmaxiong.com/wss/websocket/"; //联系客服
  24. const ROOTPATH3 = "wss://zp.xianmaxiong.com/wss/chatSocket/"; //聊天
  25. const ROOTPATH4 = "http://192.168.1.73:7155";
  26. module.exports = {
  27. APIHOST: ROOTPATH,
  28. APIHOST1: ROOTPATH1,
  29. WSHOST: ROOTPATH2,
  30. WSHOST1: ROOTPATH3,
  31. WSHOST4: ROOTPATH4
  32. };
  33. }