baseConfig.js 984 B

123456789101112131415161718192021222324252627282930
  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. PLATFROM_CONFIG.baseNewUrl = "http://10.81.40.201:8095/"
  23. break;
  24. case "120.26.64.82":
  25. case "localhost":
  26. PLATFROM_CONFIG.baseNewUrl = "http://120.26.64.82:8084/"
  27. break;
  28. default:
  29. PLATFROM_CONFIG.baseNewUrl = "http://172.23.61.1:8095/"
  30. }