staticConfig.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. switch (baseNewUrl) {
  13. case '10.211.66.23':
  14. PLATFROM_CONFIG = {
  15. ...PLATFROM_CONFIG,
  16. baseNewUrl: 'http://10.211.66.23:8082',
  17. baseURLCA: 'http://10.211.66.23:8082',
  18. fileUrl: 'http://10.211.66.23:8082',
  19. expressUrl: 'http://10.211.67.177:8043',
  20. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  21. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  22. tempUserId: '1656481036109',
  23. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  24. hasStaticRoutes: true,
  25. }
  26. break
  27. case '10.211.67.177':
  28. PLATFROM_CONFIG = {
  29. ...PLATFROM_CONFIG,
  30. baseNewUrl: 'http://10.211.67.177:8043',
  31. baseURLCA: 'http://10.211.67.177:8043',
  32. fileUrl: 'http://10.211.67.177:8043',
  33. expressUrl: 'http://10.211.67.177:8043',
  34. tempUrl: 'http://10.211.67.177:8043', // 1.0临时地址
  35. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  36. tempUserId: '1656481036109',
  37. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  38. hasStaticRoutes: true,
  39. }
  40. break
  41. case '10.199.7.20':
  42. PLATFROM_CONFIG = {
  43. ...PLATFROM_CONFIG,
  44. baseNewUrl: 'http://10.199.7.20:8083',
  45. baseURLCA: 'http://10.199.7.20:8083',
  46. }
  47. break
  48. case 'localhost':
  49. PLATFROM_CONFIG = {
  50. ...PLATFROM_CONFIG,
  51. baseNewUrl: 'http://10.211.66.23:8082',
  52. baseURLCA: 'http://10.211.66.23:8082',
  53. fileUrl: 'http://10.211.66.23:8082',
  54. expressUrl: 'http://10.211.67.177:8043',
  55. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  56. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  57. tempUserId: '1656481036109',
  58. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  59. hasStaticRoutes: true,
  60. }
  61. break
  62. default:
  63. PLATFROM_CONFIG = {
  64. ...PLATFROM_CONFIG,
  65. baseNewUrl: 'http://10.211.66.23:8082',
  66. baseURLCA: 'http://10.211.66.23:8082',
  67. }
  68. break
  69. }
  70. /* 轮询间隔 */
  71. window.LOOP_INTERVAL = {
  72. arrivalTable: 30 * 1000, // 进港视图表格
  73. departureTable: 30 * 1000, // 离港视图表格
  74. transferArrivalTable: 30 * 1000, // 中转进港表格
  75. transferDepartureTable: 30 * 1000, // 中转离港表格
  76. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  77. baggageDetails: 30 * 1000, // 行李详情表格
  78. baggageMessage: 30 * 1000, // 行李原始报文
  79. }