config.js 796 B

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