staticConfig.js 3.5 KB

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