config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const h5Url='https://bossweb.edccc.cn'
  2. const ossUrl='https://yi-zhipin.oss-cn-hangzhou.aliyuncs.com/emoji/'
  3. let mobile=0;
  4. // #ifdef APP-PLUS
  5. mobile=1
  6. //#endif
  7. if (process.env.NODE_ENV !== 'development'||mobile) {
  8. //正式环境
  9. const ROOTPATH = "https://yizhizan.edccc.cn/sqx_fast";
  10. const ROOTPATH1 = "https://yizhizan.edccc.cn/sqx_fast";
  11. const ROOTPATH2 = "wss://yizhizan.edccc.cn/wss/websocket/"; //联系客服
  12. const ROOTPATH3 = "wss://yizhizan.edccc.cn/wss/chatSocket/" ; //聊天
  13. const ROOTPATH4 = "https://yizhizan.edccc.cn";
  14. module.exports = {
  15. APIHOST: ROOTPATH,
  16. APIHOST1: ROOTPATH1,
  17. WSHOST: ROOTPATH2,
  18. WSHOST1: ROOTPATH3,
  19. WSHOST4: ROOTPATH4,
  20. h5Url,
  21. ossUrl
  22. };
  23. }else{
  24. //测试环境
  25. const ROOTPATH = "/sqx_fast";
  26. const ROOTPATH1 = "/sqx_fast";
  27. const ROOTPATH2 = "wss://yizhizan.edccc.cn/wss/websocket/"; //联系客服
  28. const ROOTPATH3 = "wss://yizhizan.edccc.cn/wss/chatSocket/"; //聊天
  29. const ROOTPATH4 = "";
  30. module.exports = {
  31. APIHOST: ROOTPATH,
  32. APIHOST1: ROOTPATH1,
  33. WSHOST: ROOTPATH2,
  34. WSHOST1: ROOTPATH3,
  35. WSHOST4: ROOTPATH4,
  36. h5Url,
  37. ossUrl
  38. };
  39. }