config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. let newServer = VE_ENV.SERVER
  2. let pyServer = VE_ENV.PYSERVER
  3. let oldServer = "https://birdseye-api.sysuimars.com/"
  4. let fosterServer = "https://foster-api.sysuimars.com/"
  5. module.exports = {
  6. base_url :oldServer + "site/",
  7. base_dev_site_url :newServer + "site/",
  8. base_foster_url: fosterServer + 'app/',
  9. base_mini_url :oldServer + "mini/",
  10. base_dev_url :newServer + "mini/",
  11. base_py_url :pyServer,
  12. image_url:oldServer+"images/",
  13. mini_key:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
  14. base_img_url : "https://img.sysuimars.com/",
  15. base_img_url2 : "https://birdseye-img-ali-cdn.sysuimars.com/",
  16. base_img_url3: "https://birdseye-img.sysuimars.com/",
  17. base_img_url4: "https://xyz2.sysuimars.cn/",
  18. base_video_url : "https://minio.sysuimars.com/sysuimars/",
  19. resize: "?x-oss-process=image/resize,w_1000",
  20. //获取请求头中的参数体
  21. getOptBody : (opt)=>{
  22. return JSON.parse(opt.body);
  23. },
  24. //需要忽略成功提示的请求
  25. igSuccessUrl:[
  26. "get",
  27. "page",
  28. "index",
  29. "sign",
  30. "List",
  31. "info",
  32. "Info",
  33. "Data",
  34. "list",
  35. "air_route",
  36. "find",
  37. "insert",
  38. "Insert",
  39. "image",
  40. "Image",
  41. "plugin_weather_report",
  42. "plugin_weather_warning_record",
  43. "poi",
  44. "mini_credential",
  45. "garden",
  46. "updateStatus",
  47. "mini_pop_control",
  48. "mini_session_store",
  49. "check",
  50. ]
  51. }