staticConfig.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. maxCount: 5, //登录错误次数
  11. maxTime: 10, //登录错误次数后可再次登录时间(分钟)
  12. loseTimeHour: 48 //失效间隔时间(小时)
  13. }
  14. const baseNewUrl = window.location.hostname
  15. // const baseNewUrl = '10.211.67.177'
  16. switch (baseNewUrl) {
  17. case '10.211.66.23':
  18. PLATFROM_CONFIG = {
  19. ...PLATFROM_CONFIG,
  20. baseNewUrl: 'http://10.211.66.23:8082',
  21. baseURLCA: 'http://10.211.66.23:8082',
  22. fileUrl: 'http://10.211.66.23:8082',
  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. expressUrl: 'http://10.211.67.177:8043',
  38. tempUrl: 'http://10.211.67.177:8043', // 1.0临时地址
  39. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  40. tempUserId: '1656481036109',
  41. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  42. hasStaticRoutes: true,
  43. }
  44. break
  45. case '10.199.7.20':
  46. PLATFROM_CONFIG = {
  47. ...PLATFROM_CONFIG,
  48. baseNewUrl: 'https://10.199.7.20:8083',
  49. baseURLCA: 'https://10.199.7.20:8083',
  50. hasStaticRoutes: true,
  51. }
  52. break
  53. case '10.199.7.241':
  54. PLATFROM_CONFIG = {
  55. ...PLATFROM_CONFIG,
  56. baseNewUrl: 'https://10.199.7.241:8883',
  57. baseURLCA: 'https://10.199.7.241:8883',
  58. hasStaticRoutes: true,
  59. }
  60. break
  61. case '120.26.64.82':
  62. PLATFROM_CONFIG = {
  63. ...PLATFROM_CONFIG,
  64. baseNewUrl: 'http://120.26.64.82:8765',
  65. baseURLCA: 'http://120.26.64.82:8765',
  66. hasStaticRoutes: true,
  67. }
  68. break
  69. case '10.199.1.152':
  70. PLATFROM_CONFIG = {
  71. ...PLATFROM_CONFIG,
  72. baseNewUrl: 'http://10.199.1.152:8083',
  73. baseURLCA: 'http://10.199.1.152:8083',
  74. fileUrl: 'http://10.199.1.152:8083',
  75. hasStaticRoutes: true,
  76. }
  77. break
  78. case '192.168.243.11':
  79. PLATFROM_CONFIG = {
  80. ...PLATFROM_CONFIG,
  81. baseNewUrl: 'http://192.168.243.11:8043',
  82. baseURLCA: 'http://192.168.243.11:8043',
  83. fileUrl: 'http://192.168.243.11:8043',
  84. hasStaticRoutes: true,
  85. }
  86. break
  87. case 'localhost':
  88. PLATFROM_CONFIG = {
  89. ...PLATFROM_CONFIG,
  90. baseNewUrl: 'http://120.26.64.82:8765',
  91. baseURLCA: 'http://120.26.64.82:8765',
  92. fileUrl: 'http://10.211.66.23:8082',
  93. expressUrl: 'http://10.211.67.177:8043',
  94. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  95. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  96. tempUserId: '1656481036109',
  97. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  98. hasStaticRoutes: true,
  99. }
  100. break
  101. default:
  102. PLATFROM_CONFIG = {
  103. ...PLATFROM_CONFIG,
  104. baseNewUrl: 'http://10.211.66.23:8082',
  105. baseURLCA: 'http://10.211.66.23:8082',
  106. }
  107. break
  108. }
  109. /* 轮询间隔 */
  110. window.LOOP_INTERVAL = {
  111. arrivalTable: 30 * 1000, // 进港视图表格
  112. departureTable: 30 * 1000, // 离港视图表格
  113. transferArrivalTable: 30 * 1000, // 中转进港表格
  114. transferDepartureTable: 30 * 1000, // 中转离港表格
  115. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  116. baggageDetails: 30 * 1000, // 行李详情表格
  117. baggageMessage: 30 * 1000, // 行李原始报文
  118. }