config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const h5Url='https://h5.bosszan.com'
  2. const ossUrl='https://yi-zhipin.oss-cn-hangzhou.aliyuncs.com/emoji/'
  3. let isProduction = false // 判断是否是生产环境
  4. if (isProduction) {
  5. //正式环境
  6. const ROOTPATH = "https://www.bosszan.com/sqx_fast";
  7. const ROOTPATH1 = "https://www.bosszan.com/sqx_fast";
  8. const ROOTPATH2 = "wss://www.bosszan.com/wss/websocket/"; //联系客服
  9. const ROOTPATH3 = "wss://www.bosszan.com/wss/chatSocket/" ; //聊天
  10. const ROOTPATH4 = "https://www.bosszan.com";
  11. const ROOTPATH5 = "https://yf327682.natappfree.cc";
  12. module.exports = {
  13. APIHOST: ROOTPATH,
  14. APIHOST1: ROOTPATH1,
  15. WSHOST: ROOTPATH2,
  16. WSHOST1: ROOTPATH3,
  17. WSHOST4: ROOTPATH4,
  18. h5Url,
  19. ossUrl,
  20. isProduction
  21. };
  22. }else{
  23. //测试环境
  24. // const ROOTPATH = "/sqx_fast";
  25. const ROOTPATH = "https://yizhizan.edccc.cn/sqx_fast";
  26. // const ROOTPATH1 = "/sqx_fast";
  27. const ROOTPATH1 = "https://yizhizan.edccc.cn/sqx_fast";
  28. const ROOTPATH2 = "wss://yizhizan.edccc.cn/wss/websocket/"; //联系客服
  29. const ROOTPATH3 = "wss://yizhizan.edccc.cn/wss/chatSocket/"; //聊天
  30. const ROOTPATH4 = "";
  31. module.exports = {
  32. APIHOST: ROOTPATH,
  33. APIHOST1: ROOTPATH1,
  34. WSHOST: ROOTPATH2,
  35. WSHOST1: ROOTPATH3,
  36. WSHOST4: ROOTPATH4,
  37. h5Url,
  38. ossUrl,
  39. isProduction
  40. };
  41. }