staticConfig.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. editRule: /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[`!@#$%^&*()_+{}":?><`,./';=-])[\da-zA-Z`!@#$%^&*()_+{}":?><`,./';=-]{8,}$/
  10. }
  11. const baseNewUrl = window.location.hostname
  12. // const baseNewUrl = '10.211.67.177'
  13. switch (baseNewUrl) {
  14. case '10.211.66.23':
  15. PLATFROM_CONFIG = {
  16. ...PLATFROM_CONFIG,
  17. // baseNewUrl: 'http://10.211.66.23:8082',
  18. // baseURLCA: 'http://10.211.66.23:8082',
  19. // fileUrl: 'http://10.211.66.23:8082',
  20. baseNewUrl: 'http://10.211.67.177:8043',
  21. baseURLCA: 'http://10.211.67.177:8043',
  22. fileUrl: 'http://10.211.67.177:8043',
  23. expressUrl: 'http://10.211.67.177:8043',
  24. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  25. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  26. tempUserId: '1656481036109',
  27. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  28. hasStaticRoutes: true,
  29. }
  30. break
  31. case '10.211.67.177':
  32. PLATFROM_CONFIG = {
  33. ...PLATFROM_CONFIG,
  34. baseNewUrl: 'http://10.211.67.177:8043',
  35. baseURLCA: 'http://10.211.67.177:8043',
  36. fileUrl: 'http://10.211.67.177:8043',
  37. fileUrlNew: 'http://10.211.67.177:8043',
  38. expressUrl: 'http://10.211.67.177:8043',
  39. tempUrl: 'http://10.211.67.177:8043', // 1.0临时地址
  40. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  41. tempUserId: '1656481036109',
  42. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  43. hasStaticRoutes: true,
  44. }
  45. break
  46. case '10.211.67.163':
  47. PLATFROM_CONFIG = {
  48. ...PLATFROM_CONFIG,
  49. baseNewUrl: 'http://10.211.67.163:8883',
  50. baseURLCA: 'http://10.211.67.163:8883',
  51. expressUrl: 'http://10.211.67.163:8883',
  52. hasStaticRoutes: true,
  53. }
  54. break
  55. case '10.199.7.20':
  56. PLATFROM_CONFIG = {
  57. ...PLATFROM_CONFIG,
  58. baseNewUrl: 'http://10.199.7.20:8083',
  59. baseURLCA: 'http://10.199.7.20:8083',
  60. hasStaticRoutes: true,
  61. }
  62. break
  63. case 'cabdp.airchina.com.cn':
  64. PLATFROM_CONFIG = {
  65. ...PLATFROM_CONFIG,
  66. baseNewUrl: 'https://cabdp.airchina.com.cn:8043',
  67. baseURLCA: 'https://cabdp.airchina.com.cn:8043',
  68. fileUrl: 'https://cabdp.airchina.com.cn:8043',
  69. fileUrlNew: 'https://cabdp.airchina.com.cn:8043',
  70. expressUrl: 'https://cabdp.airchina.com.cn:8043',
  71. tempUrl: 'https://cabdp.airchina.com.cn:8043',
  72. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  73. tempUserId: '1656481036109',
  74. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  75. hasStaticRoutes: true,
  76. }
  77. break
  78. case '192.168.3.29':
  79. PLATFROM_CONFIG = {
  80. ...PLATFROM_CONFIG,
  81. baseNewUrl: 'http://10.211.67.177:8043',
  82. baseURLCA: 'http://10.211.67.177:8043',
  83. hasStaticRoutes: true,
  84. }
  85. break
  86. case 'localhost':
  87. PLATFROM_CONFIG = {
  88. ...PLATFROM_CONFIG,
  89. baseNewUrl: 'http://10.211.67.177:8043',
  90. baseURLCA: 'http://10.211.67.177:8043',
  91. fileUrl: 'http://10.211.67.177:8043',
  92. expressUrl: 'http://10.211.67.177:8043',
  93. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  94. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  95. tempUserId: '1656481036109',
  96. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  97. hasStaticRoutes: true,
  98. }
  99. break
  100. default:
  101. PLATFROM_CONFIG = {
  102. ...PLATFROM_CONFIG,
  103. baseNewUrl: 'http://10.211.67.177:8043',
  104. baseURLCA: 'http://10.211.67.177:8043',
  105. fileUrl: 'http://10.211.67.177:8043',
  106. fileUrlNew: 'http://10.211.67.177:8043',
  107. expressUrl: 'http://10.211.67.177:8043',
  108. tempUrl: 'http://10.211.67.163:16300',
  109. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  110. tempUserId: '1656481036109',
  111. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  112. // baseNewUrl: 'http://10.211.66.23:8082',
  113. // baseURLCA: 'http://10.211.66.23:8082',
  114. hasStaticRoutes: true,
  115. }
  116. break
  117. }
  118. /* 轮询间隔 */
  119. window.LOOP_INTERVAL = {
  120. arrivalTable: 30 * 1000, // 进港视图表格
  121. departureTable: 30 * 1000, // 离港视图表格
  122. transferArrivalTable: 30 * 1000, // 中转进港表格
  123. transferDepartureTable: 30 * 1000, // 中转离港表格
  124. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  125. baggageDetails: 30 * 1000, // 行李详情表格
  126. baggageMessage: 30 * 1000, // 行李原始报文
  127. }