config.js 955 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // https
  2. // const wsUrl = "wss://web.im.fbylive.com/msg_gateway";
  3. const wsUrl = ''
  4. // const apiUrl = "https://web.im.fbylive.com/api";
  5. const apiUrl = ''
  6. // const registerUrl = "https://web.im.fbylive.com/chat";
  7. const registerUrl = ''
  8. export const version = 'UER 3.8.3+1 SDK v3.8.3-patch.3-e-v1.1.11'
  9. // 高德地图web api key 用于根据经纬度生成快照 当前key已绑定安卓包名 需要自行申请替换
  10. export const AmapWebKey = "094052d9eecdc24dfa16f3e1b18c660d";
  11. export const getRegisterUrl = () => uni.getStorageSync("IMRegisteUrl") || registerUrl;
  12. export const getApiUrl = () => uni.getStorageSync("IMApiUrl") || apiUrl;
  13. export const getWsUrl = () => uni.getStorageSync("IMWsUrl") || wsUrl;
  14. // 统一通过命名导出
  15. export const config = {
  16. version,
  17. AmapWebKey,
  18. getRegisterUrl,
  19. getApiUrl,
  20. getWsUrl
  21. };
  22. // module.exports = {
  23. // version,
  24. // AmapWebKey,
  25. // getRegisterUrl,
  26. // getApiUrl,
  27. // getWsUrl,
  28. // };