index.ts 925 B

123456789101112131415161718192021222324252627282930313233343536
  1. const mapEnvVersion = {
  2. /**
  3. * 开发版
  4. */
  5. develop: 'http://192.168.1.166:8080', // 张
  6. // develop: 'http://192.168.1.101:8080',
  7. // develop: 'http://192.168.0.157:8080',
  8. // develop: 'http://192.168.1.253:8080',
  9. // develop: 'http://192.168.1.89:8080', // 田
  10. // develop: 'http://47.109.84.152:8081',
  11. // develop: 'https://smqjh.api.zswlgz.com',
  12. /**
  13. * 体验版
  14. */
  15. // trial: "http://192.168.1.166:8080/jeecg-boot",
  16. // trial: 'http://192.168.0.157:8080',
  17. // trial: 'http://47.109.84.152:8081',
  18. // trial: 'http://192.168.1.166:8080',
  19. trial: 'https://smqjh.api.zswlgz.com',
  20. /**
  21. * 正式版
  22. */
  23. release: 'https://smqjh.api.zswlgz.com',
  24. }
  25. /**
  26. * Base URL请求基本url
  27. */
  28. export const BASE_URL
  29. = mapEnvVersion[uni.getAccountInfoSync().miniProgram.envVersion]
  30. /**
  31. * 静态资源服务
  32. */
  33. export const StaticUrl = 'https://zswl-smqjh.oss-cn-chengdu.aliyuncs.com/static/static'