config.js 972 B

12345678910111213141516171819202122232425262728293031
  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. }