baseConfig.js 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /* url配置 */
  2. const PLATFROM_CONFIG = {
  3. baseNewUrl: "", //登录前的http请求地址
  4. baseUrl: 'http://10.81.40.201:8095/', // 4A-http请求地址
  5. appKeyString: '9inu7zpllz1folzsljm498dcpi0lsog1', //appSecret
  6. appId: 'q7kdjmmaf0kerwpf', //appid
  7. baseURLCA: 'http://10.81.40.201:16300', // 登录后的http请求地址-测试
  8. baggageMessageURL: '/openApi/query',
  9. }
  10. const baseNewUrl = window.location.hostname
  11. switch (baseNewUrl) {
  12. case "10.81.160.49":
  13. PLATFROM_CONFIG.baseNewUrl = "http://10.81.160.49:8095/"
  14. break;
  15. case "172.29.13.5":
  16. PLATFROM_CONFIG.baseNewUrl = "http://172.29.13.5:8095/"
  17. break;
  18. case "10.83.36.15":
  19. PLATFROM_CONFIG.baseNewUrl = "http://10.83.36.15:8095/"
  20. break;
  21. case "10.81.40.201":
  22. case "10.81.40.202":
  23. case "172.23.61.29":
  24. PLATFROM_CONFIG.baseNewUrl = "http://10.81.40.201:8095/"
  25. break;
  26. case "120.26.64.82":
  27. case "localhost":
  28. PLATFROM_CONFIG.baseNewUrl = "http://120.26.64.82:8083/"
  29. break;
  30. default:
  31. PLATFROM_CONFIG.baseNewUrl = "http://172.23.61.1:8095/"
  32. }