staticConfig.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* url配置 */
  2. window.PLATFROM_CONFIG = {
  3. baseNewUrl: '', //登录前的http请求地址
  4. baseURLCA: '', // 登录后的http请求地址
  5. appKeyString: '9inu7zpllz1folzsljm498dcpi0lsog1', //appSecret
  6. appId: 'q7kdjmmaf0kerwpf', //appid
  7. baggageMessageURL: '/openApi/query',
  8. getBase64: 'http://10.211.67.163:8083/getBase64',
  9. }
  10. const baseNewUrl = window.location.hostname
  11. switch (baseNewUrl) {
  12. case '10.211.66.23':
  13. PLATFROM_CONFIG = {
  14. ...PLATFROM_CONFIG,
  15. baseNewUrl: 'http://10.211.66.23:8082',
  16. baseURLCA: 'http://10.211.66.23:8082',
  17. fileUrl: 'http://10.211.66.23:8082',
  18. expressUrl: 'http://10.211.67.177:8043',
  19. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  20. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  21. tempUserId: '1656481036109',
  22. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  23. hasStaticRoutes: true,
  24. }
  25. break
  26. case '10.199.7.20':
  27. PLATFROM_CONFIG = {
  28. ...PLATFROM_CONFIG,
  29. baseNewUrl: 'http://10.199.7.20:8083',
  30. baseURLCA: 'http://10.199.7.20:8083',
  31. }
  32. break
  33. case 'localhost':
  34. PLATFROM_CONFIG = {
  35. ...PLATFROM_CONFIG,
  36. baseNewUrl: 'http://10.211.66.23:8082',
  37. baseURLCA: 'http://10.211.66.23:8082',
  38. fileUrl: 'http://10.211.66.23:8082',
  39. expressUrl: 'http://10.211.67.177:8043',
  40. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  41. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  42. tempUserId: '1656481036109',
  43. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  44. hasStaticRoutes: true,
  45. }
  46. break
  47. default:
  48. PLATFROM_CONFIG = {
  49. ...PLATFROM_CONFIG,
  50. baseNewUrl: 'http://10.211.66.23:8082',
  51. baseURLCA: 'http://10.211.66.23:8082',
  52. }
  53. break
  54. }
  55. /* 轮询间隔 */
  56. window.LOOP_INTERVAL = {
  57. arrivalTable: 30 * 1000, // 进港视图表格
  58. departureTable: 30 * 1000, // 离港视图表格
  59. transferArrivalTable: 30 * 1000, // 中转进港表格
  60. transferDepartureTable: 30 * 1000, // 中转离港表格
  61. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  62. baggageDetails: 30 * 1000, // 行李详情表格
  63. baggageMessage: 30 * 1000, // 行李原始报文
  64. }