staticConfig.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. expressUrl: 'http://10.211.67.177:8043',
  21. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  22. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  23. tempUserId: '1656481036109',
  24. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  25. hasStaticRoutes: true,
  26. }
  27. break
  28. case '10.211.67.177':
  29. PLATFROM_CONFIG = {
  30. ...PLATFROM_CONFIG,
  31. baseNewUrl: 'http://10.211.67.177:8043',
  32. baseURLCA: 'http://10.211.67.177:8043',
  33. fileUrl: 'http://10.211.67.177:8043',
  34. expressUrl: 'http://10.211.67.177:8043',
  35. tempUrl: 'http://10.211.67.177:8043', // 1.0临时地址
  36. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  37. tempUserId: '1656481036109',
  38. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  39. hasStaticRoutes: true,
  40. }
  41. break
  42. case '10.211.67.163':
  43. PLATFROM_CONFIG = {
  44. ...PLATFROM_CONFIG,
  45. baseNewUrl: 'http://10.211.67.163:8883',
  46. baseURLCA: 'http://10.211.67.163:8883',
  47. expressUrl: 'http://10.211.67.163:8883',
  48. hasStaticRoutes: true,
  49. }
  50. break
  51. case '10.199.7.20':
  52. PLATFROM_CONFIG = {
  53. ...PLATFROM_CONFIG,
  54. baseNewUrl: 'http://10.199.7.20:8083',
  55. baseURLCA: 'http://10.199.7.20:8083',
  56. hasStaticRoutes: true,
  57. }
  58. break
  59. case 'cabdp.airchina.com.cn':
  60. PLATFROM_CONFIG = {
  61. ...PLATFROM_CONFIG,
  62. baseNewUrl: 'https://cabdp.airchina.com.cn:8043',
  63. baseURLCA: 'https://cabdp.airchina.com.cn:8043',
  64. hasStaticRoutes: true,
  65. }
  66. break
  67. case '192.168.3.29':
  68. PLATFROM_CONFIG = {
  69. ...PLATFROM_CONFIG,
  70. baseNewUrl: 'http://10.211.67.177:8043',
  71. baseURLCA: 'http://10.211.67.177:8043',
  72. hasStaticRoutes: true,
  73. }
  74. break
  75. case 'localhost':
  76. PLATFROM_CONFIG = {
  77. ...PLATFROM_CONFIG,
  78. baseNewUrl: 'http://10.211.67.177:8043',
  79. baseURLCA: 'http://10.211.67.177:8043',
  80. fileUrl: 'http://10.211.67.177:8043',
  81. expressUrl: 'http://10.211.67.177:8043',
  82. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  83. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  84. tempUserId: '1656481036109',
  85. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  86. hasStaticRoutes: true,
  87. }
  88. break
  89. default:
  90. PLATFROM_CONFIG = {
  91. ...PLATFROM_CONFIG,
  92. baseNewUrl: 'http://10.211.66.23:8082',
  93. baseURLCA: 'http://10.211.66.23:8082',
  94. }
  95. break
  96. }
  97. /* 轮询间隔 */
  98. window.LOOP_INTERVAL = {
  99. arrivalTable: 30 * 1000, // 进港视图表格
  100. departureTable: 30 * 1000, // 离港视图表格
  101. transferArrivalTable: 30 * 1000, // 中转进港表格
  102. transferDepartureTable: 30 * 1000, // 中转离港表格
  103. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  104. baggageDetails: 30 * 1000, // 行李详情表格
  105. baggageMessage: 30 * 1000, // 行李原始报文
  106. }