const newServer = VE_ENV.SERVER;
const pyServer = VE_ENV.PYSERVER;
const newPathServer = VE_ENV.NEW_SERVER;
const oldServer = "https://birdseye-api.feiniaotech.sysuimars.cn/";
const fosterServer = "https://foster-api.sysuimars.com/";

export default {
  base_url: oldServer + "site/",
  base_dev_site_url: newServer + "site/",
  base_foster_url: fosterServer + "app/",
  base_mini_url: oldServer + "mini/",
  base_dev_url: newServer + "mini/",
  base_new_url: newPathServer + "api/",
  base_py_url: pyServer,
  image_url: oldServer + "images/",
  mini_key: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
  base_img_url: "https://img.sysuimars.com/",
  base_img_url2: "https://birdseye-img-ali-cdn.sysuimars.com/",
  base_img_url3: "https://birdseye-img.sysuimars.com/",
  base_img_url4: "https://xyz2.sysuimars.cn/",
  base_video_url: "https://minio.sysuimars.com/sysuimars/",
  resize: "?x-oss-process=image/resize,w_1000",
  resize_300: "?x-oss-process=image/resize,w_300,p_30/format,webp/quality,q_20",

  getOptBody: (opt) => {
    return JSON.parse(opt.body);
  },
};
