app.config.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * 网络请求相关的全局配置
  3. */
  4. export const requestConfig = {
  5. /**
  6. * 是否测试环境,该配置会覆盖开发环境的变量
  7. * 只有发布测试包的时候才修改为 true
  8. */
  9. test: false,
  10. /**
  11. * 开发环境请求的根路径
  12. */
  13. // devBaseUrl: 'https://app.sxdirectpurchase.com/api',
  14. // devBaseUrl: 'https://admin-test.sxdirectpurchase.com/api',
  15. devBaseUrl: 'http://192.168.3.107:9001/api',
  16. /**
  17. * 测试环境请求的根路径
  18. */
  19. testBaseUrl: 'http://192.168.3.107:9001/api',//中亿云
  20. // testBaseUrl: 'https://app.sxdirectpurchase.com/api',//WIFI6
  21. // testBaseUrl: 'https://admin-test.sxdirectpurchase.com/api',
  22. /**
  23. * 生产环境请求的根路径
  24. */
  25. prodBaseUrl: 'https://app.sxdirectpurchase.com/api',
  26. // prodBaseUrl: 'https://admin-test.sxdirectpurchase.com/api',
  27. // applet.sxdirectpurchase.com
  28. staticDir: 'https://bucket.sxdirectpurchase.com/wx',
  29. customerId: '136895', //平台客服id
  30. /**
  31. * 请求参数相关默认配置
  32. */
  33. params: {
  34. /**
  35. * 企业 id
  36. */
  37. companyId: 1,
  38. }
  39. }