staticConfig.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.199.7.20':
  28. PLATFROM_CONFIG = {
  29. ...PLATFROM_CONFIG,
  30. baseNewUrl: 'http://10.199.7.20:8083',
  31. baseURLCA: 'http://10.199.7.20:8083',
  32. }
  33. break
  34. case 'localhost':
  35. PLATFROM_CONFIG = {
  36. ...PLATFROM_CONFIG,
  37. baseNewUrl: 'http://10.211.66.23:8082',
  38. baseURLCA: 'http://10.211.66.23:8082',
  39. fileUrl: 'http://10.211.66.23:8082',
  40. expressUrl: 'http://10.211.67.177:8043',
  41. tempUrl: 'http://10.211.67.163:16300', // 1.0临时地址
  42. tempToken: 'bb1bcfcb336b40e9b8602e808b053c3b', // 1.0临时token
  43. tempUserId: '1656481036109',
  44. tempAppToken: '2ecbda35d72c4ae89294464629f29f35',
  45. hasStaticRoutes: true,
  46. }
  47. break
  48. default:
  49. PLATFROM_CONFIG = {
  50. ...PLATFROM_CONFIG,
  51. baseNewUrl: 'http://10.211.66.23:8082',
  52. baseURLCA: 'http://10.211.66.23:8082',
  53. }
  54. break
  55. }
  56. /* 轮询间隔 */
  57. window.LOOP_INTERVAL = {
  58. arrivalTable: 30 * 1000, // 进港视图表格
  59. departureTable: 30 * 1000, // 离港视图表格
  60. transferArrivalTable: 30 * 1000, // 中转进港表格
  61. transferDepartureTable: 30 * 1000, // 中转离港表格
  62. baggageTrack: 30 * 1000, // 行李跟踪节点信息
  63. baggageDetails: 30 * 1000, // 行李详情表格
  64. baggageMessage: 30 * 1000, // 行李原始报文
  65. }