index.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * 星闪豹appid
  3. */
  4. export const ZSWLXSB_APPID = 'wxbc64403830bb13c5'
  5. export const ZSWLZSDD_APPID = 'wx9894a01b9e92c368'
  6. export const VITE_OSS_BASE_URL = 'https://zswl-shop.oss-cn-chengdu.aliyuncs.com/'
  7. const mapEnvVersion = {
  8. /**
  9. * 开发版
  10. */
  11. // develop: 'http://192.168.1.166:8080', // 张
  12. // develop: 'http://192.168.1.101:8080',
  13. // develop: 'http://192.168.0.157:8080',
  14. develop: 'http://192.168.1.253:8080',
  15. // develop: 'http://47.109.84.152:8081',
  16. /**
  17. * 体验版
  18. */
  19. // trial: "http://192.168.1.166:8080/jeecg-boot",
  20. // trial: "http://192.168.0.11:8080/jeecg-boot",
  21. trial: 'http://47.109.84.152:8081',
  22. /**
  23. * 正式版
  24. */
  25. release: '',
  26. }
  27. const mapEnvStaticVersion = {
  28. /**
  29. * 测试环境
  30. */
  31. develop: 'https://zswl-smqjh.oss-cn-chengdu.aliyuncs.com/static/static',
  32. /**
  33. * 体验环境
  34. */
  35. trial: 'https://zswl-smqjh.oss-cn-chengdu.aliyuncs.com/static/static',
  36. /**
  37. * 正式环境
  38. */
  39. release: 'https://zswl-smqjh.oss-cn-chengdu.aliyuncs.com/static/static',
  40. }
  41. /**
  42. * Base URL请求基本url
  43. */
  44. export const BASE_URL
  45. = mapEnvVersion[uni.getAccountInfoSync().miniProgram.envVersion]
  46. /**
  47. * 静态资源服务
  48. */
  49. export const StaticUrl = mapEnvStaticVersion[uni.getAccountInfoSync().miniProgram.envVersion]