staticConfig.js 3.2 KB

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