let server = VE_ENV.SERVER
let serverMock = "https://mock.apipark.cn/m1/4662471-4313509-default/"
let pythonServe = VE_ENV.PYSERVER
// let djiCloudBase = "http://127.0.0.1/";
let djiCloudBase = "https://djiapi.sysuimars.com/";
// let oneMapServer = "https://hainan-one-map-api.feiniaotech.com/";
let oneMapServer = "http://127.0.0.1:84/";

export const base_url = server + "site/";
export const base_dev_url = server + "mini/";
export const one_map_url = oneMapServer + "site/";
export const base_url_python = pythonServe;
export const server_mock = serverMock + "site/";
export const dji_cloud_base = djiCloudBase;
export const mini_key = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9";
export const image_url = server + "images/";
export const base_img_url = "https://birdseye-img.sysuimars.com/";
export const base_img_url2 = "https://birdseye-img-ali-cdn.sysuimars.com/";
export const base_img_url3 = "https://birdseye-img.sysuimars.com/";
export const base_video_url = "https://minio.sysuimars.com/sysuimars/";

// 添加缺失的resize导出
export const resize = "?x-oss-process=image/resize,w_800";

//获取请求头中的参数体
export const getOptBody = (opt) => {
    return JSON.parse(opt.body);
};

//需要忽略成功提示的请求
export const igSuccessUrl = [
    "update",
    "autoFlow",
    "home",
    "get",
    "page",
    "sign",
    "List",
    "info",
    "list",
    "air_route",
    "find",
    "poi",
    "land_check",
    "bbs_my",
    "farm",
    "pointByRegionId",
    "temp_blue_region",
    "weatherRiskVirtualFarmList",
];

// 默认导出，保持向后兼容
export default {
    base_url,
    base_dev_url,
    one_map_url,
    base_url_python,
    server_mock,
    dji_cloud_base,
    mini_key,
    image_url,
    base_img_url,
    base_img_url2,
    base_img_url3,
    base_video_url,
    resize,
    getOptBody,
    igSuccessUrl
};
