staticConfig.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* url配置 */
  2. window.PLATFROM_CONFIG = {
  3. baseNewUrl: '', //登录前的http请求地址
  4. baseURLCA: '', // 登录后的http请求地址
  5. appKeyString: 'tqUlEeQECqrI', //appSecret
  6. appId: 'dataBase', //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.199.1.152':
  43. PLATFROM_CONFIG = {
  44. ...PLATFROM_CONFIG,
  45. baseNewUrl: 'http://10.199.1.152:18083',
  46. baseURLCA: 'http://10.199.1.152:18083',
  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 'localhost':
  59. PLATFROM_CONFIG = {
  60. ...PLATFROM_CONFIG,
  61. baseNewUrl: 'http://120.26.64.82:9500',
  62. baseURLCA: 'http://120.26.64.82:9500',
  63. fileUrl: 'http://120.26.64.82:9500',
  64. expressUrl: 'http://120.26.64.82:9500',
  65. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  66. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  67. tempUserId: '1656481036109',
  68. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  69. hasStaticRoutes: true,
  70. }
  71. break
  72. case '192.168.3.29':
  73. PLATFROM_CONFIG = {
  74. ...PLATFROM_CONFIG,
  75. baseNewUrl: 'http://192.168.3.180:9500',
  76. baseURLCA: 'http://192.168.3.180:9500',
  77. hasStaticRoutes: true,
  78. }
  79. break
  80. default:
  81. PLATFROM_CONFIG = {
  82. ...PLATFROM_CONFIG,
  83. baseNewUrl: 'http://120.26.64.82:9500',
  84. baseURLCA: 'http://120.26.64.82:9500',
  85. }
  86. break
  87. }
  88. /* 轮询间隔 */
  89. window.LOOP_INTERVAL = {
  90. arrivalTable: 30 * 1000, // 进港视图表格
  91. departureTable: 30 * 1000, // 离港视图表格
  92. transferArrivalTable: 30 * 1000, // 中转进港表格
  93. transferDepartureTable: 30 * 1000, // 中转离港表格
  94. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  95. baggageDetails: 30 * 1000, // 行李详情表格
  96. baggageMessage: 30 * 1000, // 行李原始报文
  97. }